
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
【golang】巧用select {}阻塞main函数
很多时候我们需要让main函数不退出,让它在后台一直执行,例如:func main() {for i := 0; i < 10; i++ { //启动20个协程处理消息队列中的消息c := consumer.New()go c.Start()}select {} // 阻塞}可能大多数人想到阻塞的方法是用channel,当然都是可以的,不过用select{}更加简洁 ????...
kubebuilder若干报错 failed to create API: unable to run post-scaffold tasks of
kubebuilder报错 failed to create API: unable to run post-scaffold tasks of “base.go.kubebuilder.io/v4“

kubebuilder若干报错 failed to create API: unable to run post-scaffold tasks of
kubebuilder报错 failed to create API: unable to run post-scaffold tasks of “base.go.kubebuilder.io/v4“

K8S 问题记录
【代码】K8S 问题记录。
到底了







