code quality inspection for pkg direcory

This commit is contained in:
zhuyasen
2023-08-06 17:41:28 +08:00
parent a7d0a67f01
commit 95a3ed7461
97 changed files with 375 additions and 269 deletions

View File

@@ -106,7 +106,7 @@ func GzipDecode(in []byte) ([]byte, error) {
// JSONSnappyEncoding json format and snappy compression
type JSONSnappyEncoding struct{}
// Marshal serialisation
// Marshal serialization
func (s JSONSnappyEncoding) Marshal(v interface{}) (data []byte, err error) {
b, err := json.Marshal(v)
if err != nil {