util

package
v1.15.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsZeroType = reflect.TypeOf((*IsZeroer)(nil)).Elem()

Functions

func IsEmpty added in v1.15.0

func IsEmpty(v reflect.Value) bool

IsEmpty reports whether a value is a zero value Including support: Bool, Array, String, Float32, Float64, Int, Int8, Int16, Int32, Int64, Uint, Uint8, Uint16, Uint32, Uint64, Uintptr Map, Slice, Interface, Struct

func Xiazeminlog

func Xiazeminlog(index string, v interface{}, effect bool)

Types

type IsZeroer added in v1.15.0

type IsZeroer interface {
	IsEmpty() bool
}

Jump to

Keyboard shortcuts

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