06 2020 档案

摘要:摘自这里 /sys/class/net/network-interface/statistics root@Dev[09:41:51]$ ll /sys/class/net/eth0/statistics total 0 -r--r--r-- 1 root root 4096 Jun 29 14:5 阅读全文
posted @ 2020-06-30 09:55 马贡多在下雨 阅读(360) 评论(0) 推荐(0)
摘要:golang多协程并发工作 package main import ( "fmt" "log" "os" "sync" "time" ) type Task struct { Name string Age int } func work(wg *sync.WaitGroup, jobs chan 阅读全文
posted @ 2020-06-09 17:11 马贡多在下雨 阅读(957) 评论(0) 推荐(1)
摘要:模拟beego登陆 package main import ( "fmt" "time" "io/ioutil" "net/url" "net/http" "net/http/cookiejar" ) func main() { now := time.Now() var err error var 阅读全文
posted @ 2020-06-09 16:47 马贡多在下雨 阅读(236) 评论(0) 推荐(0)