Skip to content

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.

Where the book teaches it

Related terms

InterfaceImplicit satisfaction