摘要: //信道 协程通信的管道package main import ( "fmt") func one(a chan int, b int) { a <- b}func main() { a := make(chan int) go one(a, 5) b := <-a fmt.Println(b)} 阅读全文
posted @ 2020-05-19 17:25 澜海上的星 阅读(180) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "time") func one() { fmt.Println("one")}func two() { fmt.Println("two")}func main() { go one() go two() time.Sleep(1 * tim 阅读全文
posted @ 2020-05-19 16:32 澜海上的星 阅读(84) 评论(0) 推荐(0)
摘要: 插件/packages/gosublime/src/margo 插件/copy packages/gosublime/src/margo.sh/extension-example/extension-example文件到packages/gosublime/src/margo gosublime 编 阅读全文
posted @ 2020-04-07 16:15 澜海上的星 阅读(93) 评论(0) 推荐(0)
摘要: body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padd 阅读全文
posted @ 2019-02-18 09:39 澜海上的星 阅读(109) 评论(0) 推荐(0)
摘要: !function(designWidth){ if (/Android(?:\s+|\/)(\d+\.\d+)?/.test(navigator.userAgent)) { var version = parseFloat(RegExp.$1); if (version > 2.3) { var 阅读全文
posted @ 2018-10-09 10:37 澜海上的星 阅读(225) 评论(0) 推荐(0)