最近发布的主题
暂无
最近发布的文章
暂无
最近分享的资源
暂无
最近发布的项目
暂无
最近的评论
-
#11楼 @haoren007 将 HTTP 重定向到 HTTPS 是吧
-
评论了主题 Go语言爱好者周刊:第 79 期
-
评论了博文 在golang里面正确读取一行正确的做法,看 `bufio` 里面的 `ReadLine` 就是。 ```go func (b *Reader) ReadLine() (line []byte, isPrefix bool, err error) { line, err = b.ReadSlice('\n') if err == ErrBufferFull { // Handle the case where "\r\n" straddles the buffer. if len(line) > 0 && line[len(line)-1] == '\r' { // Put the '\r' back on buf and drop it from line. // Let the next call to ReadLine check for "\r\n". if b.r == 0 { // should be unreachable panic("bufio: tried to rewind past start of buffer") } b.r-- line = line[:len(line)-1] } return line, true, nil } if len(line) == 0 { if err != nil { line = nil } return } err = nil if line[len(line)-1] == '\n' { drop := 1 if len(line) > 1 && line[len(line)-2] == '\r' { drop = 2 } line = line[:len(line)-drop] } return } ```
-
#3楼 @focusonline 已经升级,可以下载。 可以用 `scoop` 来安装和管理软件,升级很方便。
-
评论了主题 [求助]用go语言给程序写守护程序你看这个够不够用。 [用go写一个简单的看门狗程序(WatchDog)<br> 原文链接:https://www.cnblogs.com/oloroso/p/11417804.html](https://www.cnblogs.com/oloroso/p/11417804.html) 如何把这个看门狗放在后台呢?直接 `nohup` 放后台执行即可。