anynil

package
v5.0.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(value interface{}) bool

Is returns true if value is any type of nil. e.g. nil or []byte(nil).

func Normalize

func Normalize(v interface{}) interface{}

Normalize converts typed nils (e.g. []byte(nil)) into untyped nil. Other values are returned unmodified.

func NormalizeSlice

func NormalizeSlice(s []interface{})

NormalizeSlice converts all typed nils (e.g. []byte(nil)) in s into untyped nils. Other values are unmodified. s is mutated in place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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