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

Method Scan

example/sql_str_int_enum.go:390–399  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

388
389// Scan implements the Scanner interface.
390func (x *NullGreekGodCustom) Scan(value interface{}) (err error) {
391 if value == nil {
392 x.GreekGodCustom, x.Valid = GreekGodCustom(""), false
393 return
394 }
395
396 err = x.GreekGodCustom.Scan(value)
397 x.Valid = (err == nil)
398 return
399}
400
401// Value implements the driver Valuer interface.
402func (x NullGreekGodCustom) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 2

GreekGodCustomTypeAlias · 0.85
ScanMethod · 0.45

Tested by

no test coverage detected