Documentation ¶
Index ¶
- Constants
- func IndexName(tableName, idxName string) string
- func IndexNoCase(s, sep string) int
- func IndexSlice(s []string, c string) int
- func IsArrayZero(v reflect.Value) bool
- func IsStructZero(v reflect.Value) bool
- func IsSubQuery(tbName string) bool
- func IsTimeZero(t time.Time) bool
- func IsValueZero(v reflect.Value) bool
- func IsZero(k interface{}) bool
- func New(tp reflect.Type, length, cap int) reflect.Value
- func ReflectValue(bean interface{}) reflect.Value
- func SeqName(tableName string) string
- func SliceEq(left, right []string) bool
- func SplitNNoCase(s, sep string, n int) []string
- func SplitNoCase(s, sep string) []string
- func WriteBuilder(w *builder.BytesWriter, inputs ...BuildReader) error
- type BuildReader
- type Zeroable
Constants ¶
View Source
const ( ZeroTime0 = "0000-00-00 00:00:00" ZeroTime1 = "0001-01-01 00:00:00" )
represents all zero times
Variables ¶
This section is empty.
Functions ¶
func IndexNoCase ¶
IndexNoCase index a string in a string with no care of capitalize
func IndexSlice ¶
IndexSlice search c in slice s and return the index, return -1 if s don't contain c
func IsArrayZero ¶
IsArrayZero returns true is a slice of array is zero
func IsStructZero ¶
IsStructZero returns true if the Value is a struct and all fields is zero
func IsSubQuery ¶
IsSubQuery returns true if it contains a sub query
func IsValueZero ¶
IsValueZero returns true if the reflect Value is a zero
func ReflectValue ¶
ReflectValue returns value of a bean
func SplitNNoCase ¶
SplitNNoCase split n by a separator with no care of capitalize
func SplitNoCase ¶
SplitNoCase split a string by a separator with no care of capitalize
func WriteBuilder ¶
func WriteBuilder(w *builder.BytesWriter, inputs ...BuildReader) error
WriteBuilder writes writers to one
Types ¶
type BuildReader ¶
type BuildReader interface { String() string Args() []interface{} }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.