Sign in
go
/
website
/
4fc81e6d7c05b3c955bea09c6c3ee9858ac20e4d
/
.
/
_content
/
blog
/
constants
/
int1.go
blob: 913ad78193250a43ddf69bc113a0af57f34d3602 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func main() {
// START OMIT
type MyInt int
const Three = 3
const TypedThree int = 3
var mi MyInt
mi = 3
// OK
mi = Three
// OK
mi = TypedThree
// Bad
fmt.Println(mi)
// STOP OMIT
}