summaryrefslogtreecommitdiffhomepage
path: root/go.html.markdown
diff options
context:
space:
mode:
authorFlo <florianjosefreheis@gmail.com>2019-10-22 23:11:23 +0100
committerFlo <florianjosefreheis@gmail.com>2019-10-22 23:11:23 +0100
commit18b796972639303e472c8f5d1575061d8c8da2ac (patch)
tree082f2ae3fc66af0a01c54d3618e6d9c77d0fe4fa /go.html.markdown
parentef1ccd2b0f9ca450395b6391b1155c981cd4ad4d (diff)
add go build tags
Diffstat (limited to 'go.html.markdown')
-rw-r--r--go.html.markdown6
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