Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
func Err ¶
Err is the direct, allocation-lean equivalent of New(WithError(err)): a failure Result carrying err over a null payload, built without the functional-options closure or variadic slice.
func Ok ¶
func Ok(payload interface{}) Interface
Ok is the direct, allocation-lean equivalent of New(WithPayload(payload)): a success Result (no error) carrying payload, built without the functional-options closure or variadic slice. The two boolean payloads are interned — Ok(true) and Ok(false) return shared immutable singletons and allocate nothing.
Click to show internal directories.
Click to hide internal directories.