package
0.0.0-20240810154633-c11fd2eb195e
Repository: https://github.com/luojiego/code.git
Documentation: pkg.go.dev
# Functions
因为直接调用json.MarshalJSON "<",">","&"会被转义,当有需求是不能被转义的时候需要用encode.SetEscapeHTML(false)来进行encode.
Array and slice values encode as JSON arrays, except that []byte encodes as a base64-encoded stringand a nil slice encodes as the null JSON value.S3 中的数据 '1','2','3' 经过base64编码之后的结果即为 MTIz当 slice 为nil时,序列化的结果为null当 slice 为空时,序列化的结果为[].