摘要: package main import ( "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "strings" "time" ) type S 阅读全文
posted @ 2021-01-23 18:00 Black_Climber 阅读(653) 评论(0) 推荐(1) 编辑
摘要: package main import ( "encoding/json" "fmt" ) //定义一个类型 type test struct { Name string `json:"name,omitempty"` Age int `json:"age,omitempty"` } func ma 阅读全文
posted @ 2021-01-23 15:04 Black_Climber 阅读(478) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" //定义一个类型 type tsh struct { //定义成员,类型是func() string test func() string } func main() { t := tsh{ test: func() string { return 阅读全文
posted @ 2021-01-23 14:43 Black_Climber 阅读(248) 评论(0) 推荐(0) 编辑