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

Function initGoTest_RequiredGroup

proto/proto_test.go:40–44  ·  view source on GitHub ↗

These are all structurally equivalent but the tag numbers differ. (It's remarkable that required, optional, and repeated all have 8 letters.)

()

Source from the content-addressed store, hash-verified

38// (It's remarkable that required, optional, and repeated all have
39// 8 letters.)
40func initGoTest_RequiredGroup() *pb2.GoTest_RequiredGroup {
41 return &pb2.GoTest_RequiredGroup{
42 RequiredField: proto.String("required"),
43 }
44}
45
46func initGoTest_OptionalGroup() *pb2.GoTest_OptionalGroup {
47 return &pb2.GoTest_OptionalGroup{

Callers 1

initGoTestFunction · 0.85

Calls 1

StringFunction · 0.92

Tested by

no test coverage detected