...

Text file src/cuelang.org/go/encoding/protobuf/jsonpb/testdata/encoder/struct.txtar

Documentation: cuelang.org/go/encoding/protobuf/jsonpb/testdata/encoder

     1-- schema.cue --
     2a: {
     3	{b: int @protobuf(1,int64)}
     4
     5	c: int @protobuf(1,int64)
     6
     7	{d: int @protobuf(1,int32)}
     8
     9	e: int @protobuf(1,int32)
    10}
    11-- value.cue --
    12// Hello
    13a: {
    14	b: 1
    15	c: 2
    16	d: 3
    17	e: 4
    18}
    19-- out/jsonpb --
    20// Hello
    21a: {
    22	b: "1"
    23	c: "2"
    24	d: 3
    25	e: 4
    26}

View as plain text