diff options
author | Divay Prakash <divayprakash@users.noreply.github.com> | 2020-01-24 19:53:11 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 19:53:11 +0530 |
commit | 4ae19dbf0fd25902cc1e271fb5895508c33951c2 (patch) | |
tree | 2858d0c0807e7a9aa2d807d9f06610c525ddfa08 | |
parent | fbdccef88430e238ff4d4a3d5faf5086b967384f (diff) | |
parent | 18b796972639303e472c8f5d1575061d8c8da2ac (diff) |
Merge pull request #3720 from florianjosefreheis/go-en-build-tags
[go/en] add go build tag
-rw-r--r-- | go.html.markdown | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/go.html.markdown b/go.html.markdown index ae99535b..4fc155b5 100644 --- a/go.html.markdown +++ b/go.html.markdown @@ -30,6 +30,12 @@ Go comes with a good standard library and a sizeable community. /* Multi- line comment */ + /* A build tag is a line comment starting with // +build + and can be execute by go build -tags="foo bar" command. + Build tags are placed before the package clause near or at the top of the file + followed by a blank line or other line comments. */ +// +build prod, dev, test + // A package clause starts every source file. // Main is a special name declaring an executable rather than a library. package main |