package network import ( "testing" ) func Test_CheckToken(t *testing.T) { code := "127328" token := CreateToken(code) t.Log(token) str := "1dcfbe790d270f45ae35779afbc4072e|1532068096|90EDAA4C1E97C7517E9D10AB9157E4D0D9CC51996E3827F2" check, user := CheckToken(str) t.Log(check) t.Log(user) } func Test_GetIpPortFromUrl(t *testing.T) { url := "http://raydesktop.gxycloud.com:8082/getmaster" GetIpPortFromUrl(url) }