common

package
v0.0.0-...-bf82029 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EmptyString = ""

Variables

This section is empty.

Functions

func Any

func Any[T any](array []T, block func(it T) bool) bool

func Contains

func Contains[T comparable](arr []T, target T) bool

func Done

func Done(ctx context.Context) bool

func Error

func Error(_ any, err error) error

func Filter

func Filter[T any](arr []T, block func(it T) bool) []T

func IsBlank

func IsBlank(str string) bool

func IsEmpty

func IsEmpty[T any](array []T) bool

func IsNotBlank

func IsNotBlank(str string) bool

func IsNotEmpty

func IsNotEmpty[T any](array []T) bool

func Map

func Map[T any, N any](arr []T, block func(it T) N) []N

func Must

func Must(err error)

func Must1

func Must1(_ any, err error)

func Must2

func Must2(_ any, _ any, err error)

Types

type DummyAddr

type DummyAddr struct{}

func (*DummyAddr) Network

func (d *DummyAddr) Network() string

func (*DummyAddr) String

func (d *DummyAddr) String() string

Directories

Path Synopsis
Package list implements a doubly linked list.
Package list implements a doubly linked list.

Jump to

Keyboard shortcuts

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