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 IndexName

func IndexName(tableName, idxName string) string

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 IsSubQuery

func IsSubQuery(tbName string) 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 ReflectValue

func ReflectValue(bean interface{}) reflect.Value

func SliceEq

func SliceEq(left, right []string) bool

SliceEq return true if two slice have the same elements even if different sort.

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
}