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