gf: github.com/gogf/gf/g/internal/empty Index | Files

package empty

import "github.com/gogf/gf/g/internal/empty"

Package empty provides checks for empty variables.

Index

Package Files

empty.go

func IsEmpty Uses

func IsEmpty(value interface{}) bool

IsEmpty checks whether given <value> empty. It returns true if <value> is in: 0, nil, false, "", len(slice/map/chan) == 0. Or else it returns true.

Package empty imports 1 packages (graph) and is imported by 6 packages. Updated 2019-07-15. Refresh now. Tools for package owners.