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