feat:优化项目信息

This commit is contained in:
henry
2022-03-05 15:31:22 +08:00
parent dcb5948e91
commit 4dc8deaadb
27 changed files with 401 additions and 138 deletions

View File

@ -1,6 +1,7 @@
package utils
import (
"encoding/json"
"fmt"
"sort"
"testing"
@ -107,3 +108,19 @@ func TestCode(t *testing.T) {
t.Log(lengthOfLongestSubstring("dvdf"))
}
type ABC struct {
Key string `json:"key"`
}
func publish(src []*ABC) {
src[1].Key = "测试"
}
func TestNew(t *testing.T) {
src := []*ABC{&ABC{}, &ABC{}}
publish(src)
_bytes, _ := json.Marshal(src)
t.Log(string(_bytes))
}