京东商城订单
This commit is contained in:
@@ -43,16 +43,16 @@ func TestNewInfoList(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test11(t *testing.T) {
|
||||
type StrA struct {
|
||||
Cat string `json:"cat"`
|
||||
Dog int `json:"dog,omitempty"`
|
||||
Mouse int `json:"mouse"`
|
||||
change := func(s ...string) {
|
||||
s[0] = "Go"
|
||||
s = append(s, "playground")
|
||||
fmt.Println(s)
|
||||
}
|
||||
a := &StrA{
|
||||
Cat: "加菲",
|
||||
}
|
||||
fmt.Println(utils.Format4Output(a, false))
|
||||
fmt.Println(a.Dog == 0, a.Mouse)
|
||||
|
||||
welcome := []string{"hello", "world"}
|
||||
change(welcome...)
|
||||
fmt.Println(welcome)
|
||||
|
||||
}
|
||||
|
||||
func TestAllOrders(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user