Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
139
func
(x JobState) Value() (driver.Value, error) {
140
return
x.String(), nil
141
}
142
143
type
NullJobState
struct
{
144
JobState JobState
Callers
8
TestCliFlagAliases
Function · 0.45
TestActualEnumGeneration
Function · 0.45
TestAdvancedEnumGeneration
Function · 0.45
TestGeneratorConfigCreation
Function · 0.45
TestMainFunctionLogic
Function · 0.45
TestIntegrationWithEnumGeneration
Function · 0.45
TestMainLogicComponentsIsolation
Function · 0.45
main
Function · 0.45
Calls
1
String
Method · 0.95
Tested by
7
TestCliFlagAliases
Function · 0.36
TestActualEnumGeneration
Function · 0.36
TestAdvancedEnumGeneration
Function · 0.36
TestGeneratorConfigCreation
Function · 0.36
TestMainFunctionLogic
Function · 0.36
TestIntegrationWithEnumGeneration
Function · 0.36
TestMainLogicComponentsIsolation
Function · 0.36