Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/golang/protobuf
/ Enum
Method
Enum
internal/testprotos/proto2_proto/test.pb.go:37–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
(x FOO) Enum() *FOO {
38
p := new(FOO)
39
*p = x
40
return
p
41
}
42
43
func
(x FOO) String() string {
44
return
proto.EnumName(FOO_name, int32(x))
Callers
15
unmarshalSingularValue
Method · 0.45
makeGolden
Function · 0.45
newTestMessage
Function · 0.45
TestMarshalTextUnknownEnum
Function · 0.45
text_test.go
File · 0.45
writeSingularValue
Method · 0.45
initGoTest
Function · 0.45
TestEnum
Function · 0.45
TestAllSetDefaults
Function · 0.45
TestJSON
Function · 0.45
proto_test.go
File · 0.45
goTypeForField
Function · 0.45
Calls
no outgoing calls
Tested by
7
makeGolden
Function · 0.36
newTestMessage
Function · 0.36
TestMarshalTextUnknownEnum
Function · 0.36
initGoTest
Function · 0.36
TestEnum
Function · 0.36
TestAllSetDefaults
Function · 0.36
TestJSON
Function · 0.36