摘要: 随机数 产生数据数 go 回调函数 闭包及闭包的特点 package main import "fmt" func test() func() int { var x int //x没有初始化,值为0 return func() int { x++ return x*x } } func main( 阅读全文
posted @ 2019-12-19 18:06 往事随风_go 阅读(174) 评论(0) 推荐(0) 编辑
摘要: package main import ( "strings" "fmt" "net/http" "log" ) func sayHelloName(w http.ResponseWriter, r *http.Request){ r.ParseForm() fmt.Println(r.Form) 阅读全文
posted @ 2019-12-19 16:15 往事随风_go 阅读(235) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "strconv" ) func Read(ch chan int){ value:=<-ch //fmt.PrintIn(strconv.itoa(value)) fmt.Println(strconv.Itoa(value)) } func 阅读全文
posted @ 2019-12-19 14:54 往事随风_go 阅读(117) 评论(0) 推荐(0) 编辑
摘要: { "window.zoomLevel": 1, "editor.fontSize": 15, //"files.autoSave": "onFocusChange", //"editor.fontWeight": "800", // "go.goroot": "c:\\Go\\", //"go.g 阅读全文
posted @ 2019-12-19 14:47 往事随风_go 阅读(542) 评论(0) 推荐(0) 编辑