MCPcopy Create free account
hub / github.com/abice/go-enum / lookupSqlIntGreekGod

Function lookupSqlIntGreekGod

example/sql_str_int_enum.go:92–98  ·  view source on GitHub ↗
(val int64)

Source from the content-addressed store, hash-verified

90}
91
92func lookupSqlIntGreekGod(val int64) (GreekGod, error) {
93 x, ok := sqlIntGreekGodMap[val]
94 if !ok {
95 return x, fmt.Errorf("%v is not %w", val, ErrInvalidGreekGod)
96 }
97 return x, nil
98}
99
100// Scan implements the Scanner interface.
101func (x *GreekGod) Scan(value interface{}) (err error) {

Callers 1

ScanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…