Glossary: Software Design Patterns in Go
Blank identifier
Also written: _
The name `_`, which throws a value away. It can be used in `var _ DiscountRule = Wholesale{}` to make the compiler check that a type satisfies an interface.
Glossary: Software Design Patterns in Go
Also written: _
The name `_`, which throws a value away. It can be used in `var _ DiscountRule = Wholesale{}` to make the compiler check that a type satisfies an interface.