package wsign import "testing" func TestCalcSignature(t *testing.T) { d := `{"b_mid":111,"b_did":"abc","b_dt":0,"b_token":"xxxxxxxx","other":"其他"}` sign, _ := CalcSignature(d) t.Log(sign) }