Documentation ¶ Index ¶ type Interface func New() Interface Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Interface ¶ type Interface interface { Number.Interface } NullNumber is the Null-Object variant of Number. It satisfies Number.Interface so callers never have to test for a bare nil: its value is zero, its arithmetic yields a Result carrying a "method not implemented" Error, and IsNull() returns true. func New ¶ func New() Interface New returns a NullNumber. Source Files ¶ View all Source files null.go Click to show internal directories. Click to hide internal directories.