package
Version:
v0.17.0
Opens a new window with list of versions in this module.
Published: Nov 19, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package must provides a way to panic if the result of a multi-value function
call returns an error, or return just the values if there is no error.
Get panics if err is not nil, otherwise it returns value.
func Get2[T, U any](left T, right U, err error) (T, U)
Get2 panics if err is not nil, otherwise it returns left and right.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.