utils

package
v0.1.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ZeroTime0 = "0000-00-00 00:00:00"
	ZeroTime1 = "0001-01-01 00:00:00"
)

Variables

This section is empty.

Functions

func IndexNoCase

func IndexNoCase(s, sep string) int

func IsArrayZero

func IsArrayZero(v reflect.Value) bool

func IsStructZero

func IsStructZero(v reflect.Value) bool

func IsTimeZero

func IsTimeZero(t time.Time) bool

func IsValueZero

func IsValueZero(v reflect.Value) bool

func IsZero

func IsZero(k interface{}) bool

IsZero returns false if k is nil or has a zero value

func SplitNNoCase

func SplitNNoCase(s, sep string, n int) []string

func SplitNoCase

func SplitNoCase(s, sep string) []string

Types

type Zeroable

type Zeroable interface {
	IsZero() bool
}

Jump to

Keyboard shortcuts

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