当前位置:首页
> golang
go的windows单实例互斥锁
utils package utils import ( "golang.org/x/sys/windows" "syscall" ) func LockMutex(name string) error { pt...
为CentOS&Ubuntu升级最新版本Golang
CentOS 7 官方连接 $ rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO $ curl -s https://mirror.go-rep...
golang计算中文文字数量
fmt.Println(len("世界"), utf8.RuneCountInString("世界 "), utf8.RuneCountInString("abc123"), utf8.RuneCountInString(...
golang的os包使用备忘
来源:https://www.cnblogs.com/jkko123/p/7146474.html?utm_source=itdadao&utm_medium=referral package main;...