as

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package as provides as.Is alias

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrTail

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

func Is[T any](value T) T

Is an alias of the convert.AsIs

func Ptr

func Ptr[T any](value T) *T

Ptr converts a value to the value pointer

func Slice

func Slice[T any](value T) []T

Slice an alias of the convert.AsSlice

func Val

func Val[T any](pointer *T) T

Val returns a value referenced by the pointer or the zero value if the pointer is nil

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL