Source File
bool.go
Belonging Package
src.elv.sh/pkg/eval/vals
package vals// Booler wraps the Bool method.type Booler interface {// Bool computes the truth value of the receiver.Bool() bool}// Bool converts a value to bool. It is implemented for nil, the builtin bool// type, and types implementing the Booler interface. For all other values, it// returns true.func ( interface{}) bool {switch v := .(type) {case nil:return falsecase bool:returncase Booler:return .Bool()}return true}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)