Sign in
go
/
website
/
29629ecc7e3ee3c3f612760b7501a3c466aeca82
/
.
/
_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
}