golang get gold price
func getPrice() ([]byte, error) { url := "htt… 继续阅读 golang get gold price
func getPrice() ([]byte, error) { url := "htt… 继续阅读 golang get gold price
type animal struct { name string kind string } fun… 继续阅读 golang unsafe.Pointer
import ( "github.com/go-toast/toast" &qu… 继续阅读 windows10 toast Notification in golang
将嵌套map展开 func flattenMap(m map[string]any, prefix … 继续阅读 flatten Map on golang
//字符串字节互转 func string2bytes(s string) []byte { str… 继续阅读 golang string switch bytes
golang errors 合并 func main() { err1 := errors.New(… 继续阅读 errors join on golang 1.22+
type Person struct { Name string Age int } // add … 继续阅读 golang use link style
golang三元运算符 func tri(cond bool, a, b any) any { if… 继续阅读 golang tri calcu
golang如何反转一个整数 使用位运算:可以利用位运算的特性来反转整数,通过不断对整数进行位取反操… 继续阅读 golang reverse a num
golang gin 不打印日志到控制台 func Routers() *gin.Engine { … 继续阅读 golang gin ignore stdout
golang walk a dir only want files func Walk(dirPat… 继续阅读 golang walk a dir only want files
golang scan tcp ports func TCPPortScan(ip string) … 继续阅读 golang scan tcp ports
package main import ( "fmt" "io/iou… 继续阅读 node_exporter get network interface speed via golang
/* * @author: sre @date: 2024/3/1 0001 @desc: todo… 继续阅读 golang get IOPS from node_exporter
//解析 JSON 数据时,默认将数值当做哪种类型 func main() { var data =… 继续阅读 json default data type golang
///golang保留两位小数 func RoundFloat(val float64, preci… 继续阅读 golang round to float bit
// TopInMap 降序输出 func TopInMap(m map[string]int) {… 继续阅读 sort map golang
IpMask > CIDR ones, bits := net.IPv4Mask(255, 2… 继续阅读 golang IpMask to CIDR
func GetRandomString(n int) string { randBytes := … 继续阅读 golang random string
http://code.sd/books/migration-to-go/