2018年12月27日

摘要: package main import ( "encoding/json" "fmt" "io/ioutil" "net/http" "strconv" ) func main() { type exchangeRate struct { BankName string `json:"bankName"` Date string `json:"date"` F... 阅读全文
posted @ 2018-12-27 17:33 srlemon 阅读(754) 评论(0) 推荐(0)
 
摘要: package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "strconv" "strings" ) type EthData struct { //eth数据结构体 Id string `json:"id"` Name s... 阅读全文
posted @ 2018-12-27 17:31 srlemon 阅读(264) 评论(0) 推荐(0)
 
摘要: package main import ( "fmt" "io/ioutil" "log" "net/http" ) type ThreadItem struct { url string content string imgs []string } func httpGet(url string) (content string, statusCode int... 阅读全文
posted @ 2018-12-27 17:30 srlemon 阅读(136) 评论(0) 推荐(0)
 
摘要: // 接口例子package main import "fmt" type Human struct { Name string Age int Sex string Phone string } type Student struct { Human School string Id string } type Employee struct { Huma... 阅读全文
posted @ 2018-12-27 17:26 srlemon 阅读(138) 评论(0) 推荐(0)