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