| 1234567891011121314151617181920 |
- package common
- import (
- "fmt"
- "testing"
- )
- func TestUrlDecode(t *testing.T) {
- fmt.Println(UrlDecode("hello%E4%BD%A0%E5%A5%BD"))
- fmt.Println(UrlDecode("hello你好"))
- }
- func TestString2Md5(t *testing.T) {
- fmt.Println(String2Md5("11111112321"))
- fmt.Println(String2Md5("11111112321"))
- }
- func TestUrlEncode(t *testing.T) {
- fmt.Println(UrlEncode(UrlDecode("hello%E4%BD%A0%E5%A5%BD")))
- }
|