Sign in
go
/
website
/
7c70422195a86cb0d14b33f35ed26183480db268
/
.
/
_content
/
blog
/
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
}