随笔分类 - golang
golang
摘要:src.go package archive_tar import ( "archive/tar" "archive/zip" "fmt" "io" "os" ) type files struct { name, content string } //写测试 func TarWriteTest()
阅读全文
摘要:package main import ( "bufio" "fmt" "log" "os" "time" ) func main() { //开始时间 t1 := time.Date(2020, 3, 1, 0, 0, 0, 0, time.Local) //结束时间 t2 := time.Dat
阅读全文
摘要:package main import "fmt" type dummy interface { show() } type student struct{} func (stu *student) show() { } func xx() dummy { var stu *student if s
阅读全文
摘要:Build Error: go build -o D:\SRY\P3\2.sqlscriptgo__debug_bin.exe -gcflags all=-N -l d:\SRY\P3\2.sqlscriptgo directory . outside available modules (exit
阅读全文
摘要:快速排序算法原理: b站 "https://b23.tv/uJqRYN"
阅读全文
摘要:```go package main import "log" type node struct { Item string Left *node Right *node } type bst struct { root *node } /* m k l h i j a b c d e f //先序遍历(根左右):m k h a b i c d l j e f //中序遍历(左根右):a h b
阅读全文
摘要:全程使用root用户运行,宿主机需要连接外网 浏览一下官方kubeadm【有些镜像用不了⬇】 https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ 安装kubeadm[在对应目录下
阅读全文
摘要:"Golang: How to sort struct with multiple sort parameters?"
阅读全文
摘要:golang实验代码 package main import("fmt") type Stu struct{ name string age int } func (stu *Stu)NewAge(age int)(PriAge int){ PriAge =age stu.age = age ret
阅读全文
摘要:see "https://stackoverflow.com/questions/27747457/golang plugin on notepad"
阅读全文
浙公网安备 33010602011771号