README ¶ buildtags As building with hedzr/log/, the tags are: go build -tags=docker,k8s,istio ./... The usages will be: if buildtags.IsDockerBuild() { // } if buildtags.IsK8sBuild() { // } if buildtags.IsIstioBuild() { // } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func IsDockerBuild() bool func IsIstioBuild() bool func IsK8sBuild() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsDockerBuild ¶ func IsDockerBuild() bool IsDockerBuild tests if go build with -tags=docker-build func IsIstioBuild ¶ func IsIstioBuild() bool IsIstioBuild tests if go build with -tags=istio func IsK8sBuild ¶ func IsK8sBuild() bool IsK8sBuild tests if go build with -tags=k8s Types ¶ This section is empty. Source Files ¶ View all Source files non-docker.gonon-istio.gonon-k8s.gotests.go Click to show internal directories. Click to hide internal directories.