1. Kubernetes 架构【draft】

    Master Master是Kubernetes Cluster的大脑,运行着的Daemon服务包括kube-apiserver、kube-scheduler、kube-controller-manager、etcd和Pod网络(例如flannel)

    2020/02/18 k8s

  2. Kubernetes Demo

    学习研究,使用minikube模拟。做下记录,方便回顾,加深理解。

    2020/02/18 k8s

  3. dockerfile常用指令

    指定容器启动时运行的命令 CMD 为容器提供默认的执行命令

    2020/02/16 docker composer

  4. Goroutine并发控制

    创建协程 jobCount := 10 // sync.WaitGroup 监控所有协程的状态,从而保证主协程结束时所有的子协程已经退出 group := sync.WaitGroup{} for i:=0;i < jobCount;i++ { group.Add(1) go func(i int) { fmt.Println("task ",i) time.Sleep(time.Second) // 刻意睡 1 秒钟,模拟耗时 group.Done() }(i) fmt.Printf("index: %d,goroutine Num: %d \n", i, runtime.NumGoroutine()) } group.Wait()

    2020/02/08 Go 知识点

  5. gomail【draft】

    发送附件及内容 ```go attach := “job/log/test.csv” f, err := os.Create(attach) // 创建文件,已存在将会清空文件 if err != nil { panic(err) } defer f.Close()

    2020/02/08 Go 知识点

  6. Go 实现PDO【draft】

    https://github.com/go-gorm/gen

    2020/01/19 Go 知识点

  7. Go interface

    接口(interface) Go中使用组合实现对象特性的描述。对象的内部使用结构体内嵌组合对象具有的特性,对外通过接口暴露能使用的特性。

    2020/01/19 Go 知识点

  8. Go 格式转换

    string、int、int64、float64相互转换 ```go #string到int int,err:=strconv.Atoi(string)

    2020/01/13 Go 知识点