Create a new StructSimple struct
()
| 89 | |
| 90 | // Create a new StructSimple struct |
| 91 | func NewStructSimple() *StructSimple { |
| 92 | return &StructSimple{ |
| 93 | Id: 0, |
| 94 | F1: false, |
| 95 | F2: true, |
| 96 | F3: 0, |
| 97 | F4: 255, |
| 98 | F5: '\000', |
| 99 | F6: '!', |
| 100 | F7: '\000', |
| 101 | F8: rune(0x0444), |
| 102 | F9: 0, |
| 103 | F10: 127, |
| 104 | F11: 0, |
| 105 | F12: 255, |
| 106 | F13: 0, |
| 107 | F14: 32767, |
| 108 | F15: 0, |
| 109 | F16: 65535, |
| 110 | F17: 0, |
| 111 | F18: 2147483647, |
| 112 | F19: 0, |
| 113 | F20: 4294967295, |
| 114 | F21: 0, |
| 115 | F22: 9223372036854775807, |
| 116 | F23: 0, |
| 117 | F24: 18446744073709551615, |
| 118 | F25: 0.0, |
| 119 | F26: float32(123.456), |
| 120 | F27: 0.0, |
| 121 | F28: float64(-123.456e+123), |
| 122 | F29: fbe.DecimalZero(), |
| 123 | F30: fbe.DecimalFromString("123456.123456"), |
| 124 | F31: "", |
| 125 | F32: "Initial string!", |
| 126 | F33: fbe.TimestampEpoch(), |
| 127 | F34: fbe.TimestampEpoch(), |
| 128 | F35: fbe.TimestampUTC(), |
| 129 | F36: fbe.UUIDNil(), |
| 130 | F37: fbe.UUIDSequential(), |
| 131 | F38: fbe.UUIDFromString("123e4567-e89b-12d3-a456-426655440000"), |
| 132 | F39: *proto.NewOrderSide(), |
| 133 | F40: *proto.NewOrderType(), |
| 134 | F41: *proto.NewOrder(), |
| 135 | F42: *proto.NewBalance(), |
| 136 | F43: *proto.NewState(), |
| 137 | F44: *proto.NewAccount(), |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // Create a new StructSimple struct from the given field values |
| 142 | func NewStructSimpleFromFieldValues(Id int32, F1 bool, F2 bool, F3 byte, F4 byte, F5 rune, F6 rune, F7 rune, F8 rune, F9 int8, F10 int8, F11 uint8, F12 uint8, F13 int16, F14 int16, F15 uint16, F16 uint16, F17 int32, F18 int32, F19 uint32, F20 uint32, F21 int64, F22 int64, F23 uint64, F24 uint64, F25 float32, F26 float32, F27 float64, F28 float64, F29 fbe.Decimal, F30 fbe.Decimal, F31 string, F32 string, F33 fbe.Timestamp, F34 fbe.Timestamp, F35 fbe.Timestamp, F36 fbe.UUID, F37 fbe.UUID, F38 fbe.UUID, F39 proto.OrderSide, F40 proto.OrderType, F41 proto.Order, F42 proto.Balance, F43 proto.State, F44 proto.Account) *StructSimple { |
no outgoing calls
no test coverage detected