Sign in
go
/
website
/
cd3dc4298d39aefc210f4400a7c67155472ed457
/
.
/
_content
/
blog
/
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
}