Sign in
go
/
blog
/
6052c397b2d27f64f34127076a3a1862a9ea834c
/
.
/
content
/
constants
/
string3.go
blob: 72de35f534ae433e067d389b401780186b9d5d32 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
const typedHello string = "Hello, 世界"
func main() {
type MyString string
var m MyString
// START OMIT
const myStringHello MyString = "Hello, 世界"
m = myStringHello
// OK
fmt.Println(m)
// STOP OMIT
}