MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / NewStructNested

Function NewStructNested

projects/Go/proto/test/StructNested.go:58–74  ·  view source on GitHub ↗

Create a new StructNested struct

()

Source from the content-addressed store, hash-verified

56
57// Create a new StructNested struct
58func NewStructNested() *StructNested {
59 return &StructNested{
60 StructOptional: NewStructOptional(),
61 F1000: *NewEnumSimple(),
62 F1001: nil,
63 F1002: EnumTyped_ENUM_VALUE_2,
64 F1003: nil,
65 F1004: *NewFlagsSimple(),
66 F1005: nil,
67 F1006: FlagsTyped_FLAG_VALUE_2 | FlagsTyped_FLAG_VALUE_4 | FlagsTyped_FLAG_VALUE_6,
68 F1007: nil,
69 F1008: *NewStructSimple(),
70 F1009: nil,
71 F1010: *NewStructOptional(),
72 F1011: nil,
73 }
74}
75
76// Create a new StructNested struct from the given field values
77func NewStructNestedFromFieldValues(Parent *StructOptional, F1000 EnumSimple, F1001 *EnumSimple, F1002 EnumTyped, F1003 *EnumTyped, F1004 FlagsSimple, F1005 *FlagsSimple, F1006 FlagsTyped, F1007 *FlagsTyped, F1008 StructSimple, F1009 *StructSimple, F1010 StructOptional, F1011 *StructOptional) *StructNested {

Callers 9

GetMethod · 0.85
GetMethod · 0.85
DeserializeMethod · 0.85
DeserializeValueMethod · 0.85
GetMethod · 0.85
DeserializeMethod · 0.85
DeserializeValueMethod · 0.85
NewStructNestedFromJSONFunction · 0.85
GetMethod · 0.85

Calls 4

NewStructOptionalFunction · 0.85
NewEnumSimpleFunction · 0.85
NewFlagsSimpleFunction · 0.85
NewStructSimpleFunction · 0.85

Tested by

no test coverage detected