fmt: fix some gofmt issue

This commit is contained in:
dudaodong committed 2021-11-29 13:01:46 +08:00
1 parent 4848647918
commit 0c4b512084
14 files changed
+46 -44

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ func ToBool(s string) (bool, error) {
return strconv.ParseBool(s)
}
// ToBool convert interface to bytes
// ToBytes convert interface to bytes
func ToBytes(data interface{}) ([]byte, error) {
var buf bytes.Buffer
enc := gob.NewEncoder(&buf)