标签 go 下的文章

Golang编译命令CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o myappCGO_ENABLED=0:纯静态二进制,避免动态库依赖-s:strip symbol table 去除符号表-w:strip DWA ...

在Linux平台上,golang的安装分为两步:压文件后放置/usr/local/go在$HOME/.profile或者/etc/profile中添加环境变量export PATH=$PATH:/usr/local/go/bin但是如果使用非root用户登录,通过sudo切换成root,或 ...

此程序已在Github上开源,https://github.com/uselibrary/systemMonitorsystemMonitorsystemMonitor是一个基于Go语言的自托管轻量型服务器性能检测与告警软件。可以检测CPU、硬盘内存和流量的使用量,并可在超过(或恢复)设置 ...