Home | History | Annotate | Download | only in fmt

Lines Matching full:reflect

11 	"reflect"
116 // value holds the current item, as a reflect.Value, and will be
118 value reflect.Value
148 p.value = reflect.Value{}
280 func getField(v reflect.Value, i int) reflect.Value {
282 if val.Kind() == reflect.Interface && !val.IsNil() {
310 func (p *pp) unknownType(v reflect.Value) {
328 p.buf.WriteString(reflect.TypeOf(p.arg).String())
533 func (p *pp) fmtBytes(v []byte, verb rune, typ reflect.Type, depth int) {
585 func (p *pp) fmtPointer(value reflect.Value, verb rune) {
600 case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.Slice, reflect.UnsafePointer:
630 intBits = reflect.TypeOf(0).Bits()
631 uintptrBits = reflect.TypeOf(uintptr(0)).Bits()
639 if v := reflect.ValueOf(arg); v.Kind() == reflect.Ptr && v.IsNil() {
740 p.value = reflect.Value{}
755 p.printArg(reflect.TypeOf(arg).String(), 's', 0)
758 p.fmtPointer(reflect.ValueOf(arg), verb)
802 case reflect.Value:
810 return p.printReflectValue(reflect.ValueOf(arg), verb, depth)
816 // printValue is like printArg but starts with a reflect value, not an interface{} value.
817 func (p *pp) printValue(value reflect.Value, verb rune, depth int) (wasString bool) {
851 var byteType = reflect.TypeOf(byte(0))
854 // It uses reflect to print the value.
855 func (p *pp) printReflectValue(value reflect.Value, verb rune, depth int) (wasString bool) {
860 case reflect.Invalid:
861 p.buf.WriteString("<invalid reflect.Value>")
862 case reflect.Bool:
864 case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
866 case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
868 case reflect.Float32, reflect.Float64:
874 case reflect.Complex64, reflect.Complex128:
880 case reflect.String:
882 case reflect.Map:
911 case reflect.Struct:
935 case reflect.Interface:
947 case reflect.Array, reflect.Slice:
953 if typ := f.Type(); typ.Elem().Kind() == reflect.Uint8 && (typ.Elem() == byteType || verb == 's' || verb == 'q' || verb == 'x') {
955 if f.Kind() == reflect.Slice {
974 if f.Kind() == reflect.Slice && f.IsNil() {
997 case reflect.Ptr:
1003 case reflect.Array, reflect.Slice:
1007 case reflect.Struct:
1011 case reflect.Map:
1018 case reflect.Chan, reflect.Func, reflect.UnsafePointer:
1230 p.buf.WriteString(reflect.TypeOf(arg).String())
1249 isString := arg != nil && reflect.TypeOf(arg).Kind() == reflect.String