github.com/jackc/pgtype.EnumType.membersMap (field)
6 uses
github.com/jackc/pgtype (current package)
enum_type.go#L13: membersMap map[string]string // map to quickly lookup member and reuse string instead of allocating
enum_type.go#L19: et.membersMap = make(map[string]string, len(members))
enum_type.go#L21: et.membersMap[m] = m
enum_type.go#L33: membersMap: et.membersMap,
enum_type.go#L134: if s, found := dst.membersMap[string(src)]; found {
![]() |
The pages are generated with Golds v0.3.2-preview. (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. |