Go实现枚举值 如何跨服务高效维护枚举值 Go实现枚举值 Go 语言并没有提供enum 的定义,我们可以使用const 来模拟枚举类型,这也是Go 语言中约定俗成的方式。 例如,在Kubernetes 项目中,有大量的常量定义: // PodPhase is a label for the condition of a pod at the cu...
Fluent Bit and Golang Plugins Getting Started Build a Go Plugin Run Fluent Bit with the new plugin Fluent Bit and Golang Plugins Fluent Bit currently supports integration of ...
gitlabci-golang Plugin Usage gitlabci-golang Plugin This plugin creates Golang GitLab CI workflow. Usage This plugin depends on an environment variable “GITLAB_TOKEN”, which ...
Fluent Bit and Golang Plugins Getting Started Build a Go Plugin Run Fluent Bit with the new plugin Fluent Bit and Golang Plugins Fluent Bit currently supports integration of ...
gitlabci-golang Plugin Usage gitlabci-golang Plugin This plugin creates Golang GitLab CI workflow. Usage This plugin depends on an environment variable “GITLAB_TOKEN”, which ...
githubactions-golang Plugin Usage Use Together with the github-repo-scaffolding-golang Plugin githubactions-golang Plugin This plugin creates some Golang GitHub Actions workf...