xorm: xorm.io/xorm/internal/utils Index | Files

package utils

import "xorm.io/xorm/internal/utils"


Package Files

name.go reflect.go slice.go sql.go strings.go zero.go


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

func IndexName Uses

func IndexName(tableName, idxName string) string

func IndexNoCase Uses

func IndexNoCase(s, sep string) int

func IsArrayZero Uses

func IsArrayZero(v reflect.Value) bool

func IsStructZero Uses

func IsStructZero(v reflect.Value) bool

func IsSubQuery Uses

func IsSubQuery(tbName string) bool

func IsTimeZero Uses

func IsTimeZero(t time.Time) bool

func IsValueZero Uses

func IsValueZero(v reflect.Value) bool

func IsZero Uses

func IsZero(k interface{}) bool

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

func ReflectValue Uses

func ReflectValue(bean interface{}) reflect.Value

func SliceEq Uses

func SliceEq(left, right []string) bool

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

func SplitNNoCase Uses

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

func SplitNoCase Uses

func SplitNoCase(s, sep string) []string

type Zeroable Uses

type Zeroable interface {
    IsZero() bool

Package utils imports 5 packages (graph) and is imported by 7 packages. Updated 2021-01-19. Refresh now. Tools for package owners.