github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/proto/generic/cast_test.go (about) 1 package generic 2 3 import ( 4 "github.com/cloudwego/dynamicgo/proto" 5 ) 6 7 var ( 8 PathInnerBase = NewPathFieldName("InnerBase2") 9 PathNotExist = []Path{NewPathFieldName("NotExist")} 10 PathExampleBool = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(1))} 11 PathExampleUint32 = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(2))} 12 PathExampleUint64 = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(3))} 13 PathExampleInt32 = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(4))} 14 PathExampleInt64 = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(5))} 15 PathExampleDouble = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(6))} 16 PathExampleString = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(7))} 17 PathExampleListInt32 = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(8))} 18 PathExampleMapStringString = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(9))} 19 PathExampleSetInt32_ = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(10))} 20 PathExampleFoo = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(11))} 21 PathExampleMapInt32String = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(12))} 22 PathExampleBinary = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(13))} 23 PathExampleBase = []Path{PathInnerBase, NewPathFieldId(proto.FieldNumber(255))} 24 )