package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Jun 11, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package as provides as.Is alias
func ErrTail[I, O any](f func(I) O) func(I) (O, error)
ErrTail wraps a function of one argument and one result in a function that returns an error
func Is[T any](value T) T
Is an alias of the convert.AsIs
func Ptr[T any](value T) *T
Ptr converts a value to the value pointer
func Slice[T any](value T) []T
Slice an alias of the convert.AsSlice
func Val[T any](pointer *T) T
Val returns a value referenced by the pointer or the zero value if the pointer is nil
Source Files
¶
Click to show internal directories.
Click to hide internal directories.