Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasHTTPCode ¶
HasHTTPCode returns true if the given error is an HTTP response with the given code.
func IsNotFound ¶
IsNotFound returns true if the given error is an HTTP 404.
func LazyPtr ¶
func LazyPtr[T comparable](v T) *T
LazyPtr returns a pointer to v, unless it is the empty value, in which case it returns nil. It is essentially the inverse of ValueOf, though it is lossy because we can't tell nil and empty apart without a pointer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.