builtin

package
v0.0.0-...-f8c32d9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Things that should've been built-in to Go :) Intended to be imported with the "." operator. I feel dirty using "import .", so these primitives have lot to live up to..

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorIfUnset

func ErrorIfUnset(isUnset bool, fieldName string) error

func FirstError

func FirstError(errs ...error) error

func FirstNonEmpty

func FirstNonEmpty(items ...string) string

TODO: this would greatly benefit from generics

Types

type Void

type Void struct{}

a type that cannot contain no information whatsoever. perfect for when you need to make(chan struct{}) purely for signalling etc.

Jump to

Keyboard shortcuts

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