123456789101112131415161718192021 |
- package md5
- import (
- "encoding/json"
- "fmt"
- "testing"
- )
- func TestMd5(t *testing.T) {
- fmt.Println(Md5([]byte("test")))
- }
- func TestMd5File(t *testing.T) {
- x := `{"x":348454,"a":"7asdfuasdf3241234","list":[1,2,3,4,5]}`
- var y map[string]interface{}
- json.Unmarshal([]byte(x), &y)
- t.Log(y)
- }
|