Sign in
go
/
website
/
80138e489bacf30d238a661d16924f59f8a26684
/
.
/
_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
}