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.
22 lines
356 B
22 lines
356 B
package url
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestLenCode(t *testing.T) {
|
|
u := "https://www.dtapp.net"
|
|
fmt.Println(LenCode(u))
|
|
}
|
|
|
|
func TestDeCode(t *testing.T) {
|
|
u := "https%3A%2F%2Fwww.dtapp.net"
|
|
fmt.Println(DeCode(u))
|
|
}
|
|
|
|
func TestParseQuery(t *testing.T) {
|
|
u := "https://api.dtapp.net/v8/ip/qqwry?ip=113.118.170.199"
|
|
fmt.Println(ParseQuery(u))
|
|
}
|