Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result is a small wrapper type encapsulating Value/Error tuples, mostly for use when sending values across channels NOTE: Avoid adding any functionality to this, any "nice" things added here will make it more difficult to switch to a more standardised Result-like type when one gets into the stdlib, or when we will want to switch to a library providing those types.
func (Result[T]) MarshalJSON ¶ added in v1.26.0
MarshalJSON implements the json.Marshaler interface, marshalling string error correctly this method makes the display in log.Infow nicer
Click to show internal directories.
Click to hide internal directories.