diff options
Diffstat (limited to 'content/constants/string1.go')
-rw-r--r-- | content/constants/string1.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/content/constants/string1.go b/content/constants/string1.go new file mode 100644 index 0000000..3b83851 --- /dev/null +++ b/content/constants/string1.go @@ -0,0 +1,15 @@ +// +build OMIT + +package main + +import "fmt" + +const typedHello string = "Hello, 世界" + +func main() { + // START OMIT + var s string + s = typedHello + fmt.Println(s) + // STOP OMIT +} |