Sign in
go
/
website
/
06c5c766ba230c61c861ca1242afefadb7b59926
/
.
/
blog
/
content
/
constants
/
string4.go
blob: 4c35f297562c1484e9991a6f4eab71e32a87ebd6 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
const typedHello string = "Hello, 世界"
func main() {
type MyString string
var m MyString
// START OMIT
m = MyString(typedHello)
fmt.Println(m)
// STOP OMIT
}