aboutsummaryrefslogtreecommitdiff
path: root/content/constants/default2.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/constants/default2.go')
-rw-r--r--content/constants/default2.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/constants/default2.go b/content/constants/default2.go
new file mode 100644
index 0000000..2183cf0
--- /dev/null
+++ b/content/constants/default2.go
@@ -0,0 +1,14 @@
+// +build OMIT
+
+package main
+
+import "fmt"
+
+const hello = "Hello, 世界"
+
+func main() {
+ // START OMIT
+ fmt.Printf("%T: %v\n", "Hello, 世界", "Hello, 世界")
+ fmt.Printf("%T: %v\n", hello, hello)
+ // STOP OMIT
+}