You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simpleRequest/test/data_test.go

24 lines
337 B
Go

/*
* @FileName: dataTest.go
* @Author: JuneXu
* @CreateTime: 2022/3/24 下午9:18
* @Description:
*/
package test
import (
"encoding/json"
"testing"
)
func TestData(t *testing.T) {
type dt map[string][]string
var newData = dt{
"aa": []string{"aa", "cc"},
}
res, err := json.Marshal(&newData)
t.Log(err)
t.Log(res)
}