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