Sign in
go
/
blog
/
db9863f727af0a8baec56954d3a160f09543876e
/
.
/
content
/
constants
/
bool.go
blob: 7578d4ac602323dc808652fff583f28c05ca6291 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func main() {
// START OMIT
type MyBool bool
const True = true
const TypedTrue bool = true
var mb MyBool
mb = true
// OK
mb = True
// OK
mb = TypedTrue
// Bad
fmt.Println(mb)
// STOP OMIT
}