好好爱自己!

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 179 下一页
摘要: godoc -http=:6060 参考:https://blog.csdn.net/qq_41991476/article/details/106748947 首先,该命令无效的原因是go 1.13 版本后 移除了godoc相关的一些命令,因此需手动安装下面是安装使用该命令的方法: 第一步进入命令 阅读全文
posted @ 2021-05-16 18:02 立志做一个好的程序员 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 重排??? https://blog.csdn.net/FJDJFKDJFKDJFKD/article/details/113179262 编译时的内存序重排 注:Memory Ordering at Compile Time,译文内容有删减。 在源码编写和最终可执行文件在处理器上执行期间,代码中的 阅读全文
posted @ 2021-05-13 17:11 立志做一个好的程序员 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 第一种情况 第二种情况 第三种情况 第四种情况 rb rb sb sb sb sb rb rb se re re se re se se re 显然: send begin 早于 send end, recv begin 早于 recv end, 可得: 非buffer 的channel时: sen 阅读全文
posted @ 2021-05-13 15:30 立志做一个好的程序员 阅读(139) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000008230146 package main import ( "time" "log" ) var a string func hello() { time.Sleep(time.Millisecond * 900) // 这里如 阅读全文
posted @ 2021-05-13 10:46 立志做一个好的程序员 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 原文: https://www.bbsmax.com/A/n2d99QxBdD/ #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #inc 阅读全文
posted @ 2021-05-12 13:47 立志做一个好的程序员 阅读(157) 评论(0) 推荐(0) 编辑
摘要: golang 中channel 即使已经关闭了, 仍然可以将channel中的数据读出来, 并不会报错。 一般的写法: data, ok := <- chan, 只有当channel无数据,且channel被close了,才会返回ok=false。 package main import ( "co 阅读全文
posted @ 2021-05-12 10:39 立志做一个好的程序员 阅读(4214) 评论(0) 推荐(0) 编辑
摘要: package main import { "fmt" "time" ) func main() { ch1 := make(chan int) ch2 := make(chan int) go func(ch chan int) { <-ch }(ch1) go func(ch chan int) 阅读全文
posted @ 2021-05-11 14:06 立志做一个好的程序员 阅读(7548) 评论(0) 推荐(1) 编辑
摘要: 原文: https://www.cnblogs.com/gremount/p/8830707.html 以下内容参考了 http://www.ruanyifeng.com/blog/2016/11/byte-order.html https://blog.csdn.net/yishengzhiai0 阅读全文
posted @ 2021-05-11 11:23 立志做一个好的程序员 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.bubuko.com/infodetail-3022082.html 本文介绍3种TCP连接异常的情况。 1.server端没有启动,client尝试连接 ./client dial failed: dial tcp 127.0.0.1:8080: connect: co 阅读全文
posted @ 2021-05-08 00:26 立志做一个好的程序员 阅读(3679) 评论(0) 推荐(0) 编辑
摘要: https://www.tutorialspoint.com/unix_commands/ex.htm NAME vim - Vi IMproved, a programmers text editor SYNOPSIS vim [options] [file ..]vim [options] -v 阅读全文
posted @ 2021-05-07 10:12 立志做一个好的程序员 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 179 下一页

不断学习创作,与自己快乐相处