Source File
reflect.go
Belonging Package
github.com/uptrace/bun/schema
package schemaimport ()var (bytesType = reflect.TypeOf((*[]byte)(nil)).Elem()timeType = reflect.TypeOf((*time.Time)(nil)).Elem()ipType = reflect.TypeOf((*net.IP)(nil)).Elem()ipNetType = reflect.TypeOf((*net.IPNet)(nil)).Elem()jsonRawMessageType = reflect.TypeOf((*json.RawMessage)(nil)).Elem()driverValuerType = reflect.TypeOf((*driver.Valuer)(nil)).Elem()queryAppenderType = reflect.TypeOf((*QueryAppender)(nil)).Elem())func ( reflect.Type) reflect.Type {if .Kind() == reflect.Ptr {= .Elem()}return}func ( reflect.Value, []int) ( reflect.Value, bool) {if len() == 1 {return .Field([0]), true}for , := range {if > 0 {if .Kind() == reflect.Ptr {if .IsNil() {return , false}= .Elem()}}= .Field()}return , true}func ( reflect.Value, []int) reflect.Value {if len() == 1 {return .Field([0])}for , := range {if > 0 {= indirectNil()}= .Field()}return}func ( reflect.Value) reflect.Value {if .Kind() == reflect.Ptr {if .IsNil() {.Set(reflect.New(.Type().Elem()))}= .Elem()}return}
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |