github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/blog/content/constants/string4.go (about) 1 // +build OMIT 2 3 package main 4 5 import "fmt" 6 7 const typedHello string = "Hello, 世界" 8 9 func main() { 10 type MyString string 11 var m MyString 12 // START OMIT 13 m = MyString(typedHello) 14 fmt.Println(m) 15 // STOP OMIT 16 }