Source File
blackhole.go
Belonging Package
src.elv.sh/pkg/eval/vars
package varstype blackhole struct{}func (blackhole) (interface{}) error {return nil}func (blackhole) () interface{} {return nil}// NewBlackhole returns a blackhole variable. Assignments to a blackhole// variable will be discarded, and getting a blackhole variable always returns// nil.func () Var {return blackhole{}}// IsBlackhole returns whether the variable is a blackhole variable.func ( Var) bool {, := .(blackhole)return}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)