MCPcopy
hub / github.com/gogo/protobuf / String

Function String

proto/lib.go:459–461  ·  view source on GitHub ↗

String is a helper routine that allocates a new string value to store v and returns a pointer to it.

(v string)

Source from the content-addressed store, hash-verified

457// String is a helper routine that allocates a new string value
458// to store v and returns a pointer to it.
459func String(v string) *string {
460 return &v
461}
462
463// EnumName is a helper function to simplify printing protocol buffer enums
464// by name. Given an enum map and a value, it returns a useful string.

Callers 15

TestUnmarshalDynamicFunction · 0.92
TestExtensionsRoundTripFunction · 0.92
TestNilExtensionFunction · 0.92
TestDiscardUnknownFunction · 0.92
newTestMessageFunction · 0.92
TestTextOneofFunction · 0.92
TestStringEscapingFunction · 0.92
TestRepeatedNilTextFunction · 0.92
TestRacyMarshalFunction · 0.92
makeGoldenFunction · 0.92
clone_test.goFile · 0.92

Calls

no outgoing calls

Tested by 15

TestUnmarshalDynamicFunction · 0.74
TestExtensionsRoundTripFunction · 0.74
TestNilExtensionFunction · 0.74
TestDiscardUnknownFunction · 0.74
newTestMessageFunction · 0.74
TestTextOneofFunction · 0.74
TestStringEscapingFunction · 0.74
TestRepeatedNilTextFunction · 0.74
TestRacyMarshalFunction · 0.74
makeGoldenFunction · 0.74
initFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…