Documentation
¶
Index ¶
- func Camel2Case(name string) string
- func Case2BigCamel(name string) string
- func Case2SmallCamel(name string) string
- func Contains(list []string, s string) bool
- func Find(list []string, s string) int
- func GenwhereToken(columns []string) []string
- func GenwhereTokenOfBatch(columns []string, num int) string
- func GetSoftDelType(t reflect.Type) softdelete.SoftDelType
- func HighlightSQL(sql string) string
- func IsNil(v any) bool
- func IsSoftDelFieldType(t reflect.Type) bool
- func Lcfirst(str string) string
- func PanicErr(err error)
- func PrintSql(disableColor bool, originalSql, dialectSql string, args ...any)
- func ToSlice(v reflect.Value) []any
- func ToSliceValue(v reflect.Value) []reflect.Value
- func Ucfirst(str string) string
- type Buffer
- type RuneBuffer
- func (b *RuneBuffer) LastChars(n int) string
- func (b *RuneBuffer) Len() int
- func (b *RuneBuffer) Reset()
- func (b *RuneBuffer) RetrieveLastChars(n int) string
- func (b *RuneBuffer) Rewind(n int)
- func (b *RuneBuffer) Runes() []rune
- func (b *RuneBuffer) String() string
- func (b *RuneBuffer) WriteString(s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenwhereToken ¶
func GenwhereTokenOfBatch ¶
func GetSoftDelType ¶
func GetSoftDelType(t reflect.Type) softdelete.SoftDelType
GetSoftDelType 获取一个 struct 的 type 的软删除类型
func HighlightSQL ¶
func IsSoftDelFieldType ¶
Types ¶
type RuneBuffer ¶
type RuneBuffer struct {
// contains filtered or unexported fields
}
RuneBuffer 高效字符缓冲区
func (*RuneBuffer) RetrieveLastChars ¶
func (b *RuneBuffer) RetrieveLastChars(n int) string
取回最后 n 个字符(移除并返回)
Click to show internal directories.
Click to hide internal directories.