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

Method Scan

example/sql_str_int_enum.go:194–203  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

192
193// Scan implements the Scanner interface.
194func (x *NullGreekGod) Scan(value interface{}) (err error) {
195 if value == nil {
196 x.GreekGod, x.Valid = GreekGod(""), false
197 return
198 }
199
200 err = x.GreekGod.Scan(value)
201 x.Valid = (err == nil)
202 return
203}
204
205// Value implements the driver Valuer interface.
206func (x NullGreekGod) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 2

GreekGodTypeAlias · 0.85
ScanMethod · 0.45

Tested by

no test coverage detected