MCPcopy
hub / github.com/golang/protobuf / EnumName

Function EnumName

proto/deprecated.go:57–63  ·  view source on GitHub ↗

Deprecated: Do not use.

(m map[int32]string, v int32)

Source from the content-addressed store, hash-verified

55
56// Deprecated: Do not use.
57func EnumName(m map[int32]string, v int32) string {
58 s, ok := m[v]
59 if ok {
60 return s
61 }
62 return strconv.Itoa(int(v))
63}
64
65// Deprecated: Do not use.
66func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) {

Callers 9

StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected