util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Implements

func Implements[T any, I any]() bool

checks if type T implements interface I

func IsChannelClosed

func IsChannelClosed[T any](ch <-chan T) bool

check if a provided channel is closed

func IsNil

func IsNil[T any](v T) bool

func IsZero

func IsZero[T comparable](v T) bool

func NormalizeSKI

func NormalizeSKI(ski string) string

standardize the provided SKI strings

func Ptr

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

func ReceiveWithTimeout

func ReceiveWithTimeout[T any](c chan T, maxDelay time.Duration) T

func Type

func Type[T any]() reflect.Type

func Zero

func Zero[T any]() (ret T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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