短信发送方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
503 B

package sms
import (
// jsonorg "encoding/json"
"testing"
"time"
// "github.com/json-iterator/go"
)
func Test_PostJsonData(t *testing.T) {
t.Log(time.Now().UnixNano())
// data := map[string]string{"11": "22", "33": "44", "55": "66"}
var d []byte
var err error
org := `{"11":"22","33":"44","55":"66"} `
var org_old map[string]string
for i := 0; i < 10000000; i++ {
err = json.Unmarshal([]byte(org), &org_old)
}
t.Log(org_old)
t.Log(string(d), err)
t.Log(time.Now().UnixNano())
}