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

Method String

example/sql_str_enum.go:41–46  ·  view source on GitHub ↗

String implements the Stringer interface.

()

Source from the content-addressed store, hash-verified

39
40// String implements the Stringer interface.
41func (x JobState) String() string {
42 if str, ok := _JobStateMap[x]; ok {
43 return str
44 }
45 return fmt.Sprintf("JobState(%d)", x)
46}
47
48// IsValid provides a quick way to determine if the typed value is
49// part of the allowed enumerated values

Callers 2

ValueMethod · 0.95
ValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected