摘要:
package main import ( "fmt" "net" ) func main() { netInterfaces, err := net.Interfaces() if err != nil { fmt.Println("net.Interfaces failed, err:", er 阅读全文
posted @ 2021-08-11 19:05
HexagonMan
阅读(743)
评论(0)
推荐(0)
摘要:
package main import ( "bytes" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "sync" "time" ) func main(){ f, err := os.OpenFile("out.log", os 阅读全文
posted @ 2021-08-11 19:01
HexagonMan
阅读(97)
评论(0)
推荐(0)
摘要:
go编译型语言,so函数编写的顺序无关紧要。 goroutine 协程 Go语言里面拥三种类型的函数: -普通的带有名字的函数 -匿名函数或者 lambda 函数 -方法 同一种类型返回值和带有变量名的返回值 func name()(int,int){return a,b} func name()( 阅读全文
posted @ 2021-08-11 18:40
HexagonMan
阅读(153)
评论(0)
推荐(0)
摘要:
1.ab压测工具 ab是apache自带的压力测试工具。ab进行的一切测试本质上是基于HTTP的。 linux下安装 yum -y install httpd-tools 版本信息:ab -V ab -n1000 -c100 https://www.imooc.com/ 请求1000次,每次并发10 阅读全文
posted @ 2021-08-11 18:32
HexagonMan
阅读(424)
评论(0)
推荐(0)
摘要:
go语言在多核并发上拥有原生的设计优势,兼顾性能和开发效率 号称:Python的开发速度,C/C++的性能和安全 php迁go属于大的架构调整,从架构角度 个人认为go符合,简单、合适的原则 1、架构设计的主要目的 是为了解决软件系统复杂度带来的问题 2、系统复杂度的主要来源 高性能、高可用、可扩展 阅读全文
posted @ 2021-08-11 12:29
HexagonMan
阅读(127)
评论(1)
推荐(0)

浙公网安备 33010602011771号