Sign in
go
/
website
/
7a60f303d8c4f3c0c7daab7b2175a6ff4f692698
/
.
/
_content
/
blog
/
constants
/
string2.go
blob: 362b4841d0a985b95a085e165ec2d86b2c5da857 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
const typedHello string = "Hello, 世界"
func main() {
// START OMIT
type MyString string
var m MyString
m = typedHello
// Type error
fmt.Println(m)
// STOP OMIT
}