Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abice/go-enum
/ Ptr
Method
Ptr
example/color_enum.go:119–121 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
117
}
118
119
func
(x Color) Ptr() *Color {
120
return
&x
121
}
122
123
// MarshalText implements the text marshaller method.
124
func
(x Color) MarshalText() ([]byte, error) {
Callers
4
TestSQLExtras
Function · 0.45
TestSQLMarshal
Function · 0.45
TestStrState
Function · 0.45
TestColorString
Function · 0.45
Calls
no outgoing calls
Tested by
4
TestSQLExtras
Function · 0.36
TestSQLMarshal
Function · 0.36
TestStrState
Function · 0.36
TestColorString
Function · 0.36