短信发送方法
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

  1. package sms
  2. import (
  3. // jsonorg "encoding/json"
  4. "testing"
  5. "time"
  6. // "github.com/json-iterator/go"
  7. )
  8. func Test_PostJsonData(t *testing.T) {
  9. t.Log(time.Now().UnixNano())
  10. // data := map[string]string{"11": "22", "33": "44", "55": "66"}
  11. var d []byte
  12. var err error
  13. org := `{"11":"22","33":"44","55":"66"} `
  14. var org_old map[string]string
  15. for i := 0; i < 10000000; i++ {
  16. err = json.Unmarshal([]byte(org), &org_old)
  17. }
  18. t.Log(org_old)
  19. t.Log(string(d), err)
  20. t.Log(time.Now().UnixNano())
  21. }