最近发布的主题
最近发布的文章
暂无
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
评论了主题 大家来说说获取字符串字符个数的方法最佳获得utf8字符串方法,无需引入任何库。下列代码: str := "ABC世界" n := len([]rune(str)) fmt.Println(n) n = 5
-
没见过这么垃圾的软件!好不容易下载下来,软件会偷偷的联网,并且根本就无法运行,请参见下列 ``` error: D 2016年09月01日 13:46:47 wide.go:171: Conf: { "IP": "${ip}", "Port": "7070", "Context": "", "Server": "{IP}:{Port}", "StaticServer": "", "LogLevel": "debug", "Channel": "ws://{IP}:{Port}", "HTTPSessionMaxAge": 86400, "StaticResourceVersion": "${time}", "MaxProcs": 4, "RuntimeMode": "dev", "WD": "${pwd}", "Locale": "en_US", "Playground": "${home}/playground", "AllowRegister": true, "Autocomplete": true } D 2016年09月01日 13:46:47 wide.go:175: ${pwd} [C:\temp\wide] D 2016年09月01日 13:46:48 wide.go:185: ${user.home} [C:\Users\honzheng] D 2016年09月01日 13:46:48 wide.go:212: ${ip} [169.254.11.252] D 2016年09月01日 13:46:48 wide.go:243: ${time} [1472708808385529700] D 2016年09月01日 13:46:48 main.go:90: host [go1.5.1, windows_amd64], cross-compilation [windows_amd64] I 2016年09月01日 13:46:48 main.go:187: Wide is running [169.254.11.252:7070] E 2016年09月01日 13:46:48 main.go:191: listen tcp 169.254.11.252:7070: bind: The requested address is not valid in its context. ``` 请勿使用.比liteide差的档次不知有多远.
-
评论了博文 Golang中Switch的使用这篇文章完全是错误的!这么明显的bug, go怎么可能不解决? 作了实验,见下述代码: // FirstGo project main.go package main import ( "fmt" ) func main() { var key int = 0 fmt.Scanf("%d", &key) switch key { case 1: //fmt.Println("a") case 2: fmt.Println("b") case 3: fmt.Println("c") default: fmt.Println("d") } } 输入1,不会有显示, 输入2,显示b. 结论:switch语句完全正确,无须理会上述博文.
-
批处理运行godoc时会卡住,第二会多出一个window,实际上郊果不好的.
-
用 chcp 65001只能解决utf-8字符显示的问题,但是输入还是不行.