...

Text file src/cuelang.org/go/encoding/protobuf/jsonpb/testdata/decoder/base64.txtar

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

     1-- schema.cue --
     2b: [string]: bytes
     3-- std.cue --
     4b: hello: "SGVsbG8sIOS4lueVjA=="
     5b: noPad: "SGVsbG8sIOS4lueVjA"
     6b: bar:   "c29tZSBkYXRhIHdpdGggACBhbmQg77u/"
     7
     8// A large one-line text.
     9b: multi: """
    10	TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz
    11	IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg
    12	dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu
    13	dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo
    14	ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=
    15	"""
    16-- url.cue --
    17b: bar: "c29tZSBkYXRhIHdpdGggACBhbmQg77u_"
    18-- out/jsonpb/std.cue --
    19b: hello: 'Hello, 世界'
    20b: noPad: 'Hello, 世界'
    21b: bar:   'some data with \x00 and \ufeff'
    22
    23// A large one-line text.
    24b: multi: '''
    25	Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure.
    26	'''
    27-- out/jsonpb/url.cue --
    28b: bar: 'some data with \x00 and \ufeff'

View as plain text