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

Method Value

example/sql_str_enum.go:139–141  ·  view source on GitHub ↗

Value implements the driver Valuer interface.

()

Source from the content-addressed store, hash-verified

137
138// Value implements the driver Valuer interface.
139func (x JobState) Value() (driver.Value, error) {
140 return x.String(), nil
141}
142
143type NullJobState struct {
144 JobState JobState

Callers 8

TestCliFlagAliasesFunction · 0.45
TestActualEnumGenerationFunction · 0.45
TestMainFunctionLogicFunction · 0.45
mainFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by 7

TestCliFlagAliasesFunction · 0.36
TestActualEnumGenerationFunction · 0.36
TestMainFunctionLogicFunction · 0.36