utils

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrorCode

func GetErrorCode(err error) codes.Code

GetErrorCode returns the error code to use

func MergeErrors

func MergeErrors(cs ...<-chan error) <-chan error

MergeErrors merges multiple channels of errors.

func Unique

func Unique(arr []string) []string

Unique returns a list of unique strings

func WaitForError

func WaitForError(errs ...<-chan error) error

WaitForError waits for results from all error channels Returns on first non-nil error or returns nil after all channels are closed

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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