utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(src, dst interface{}) bool

func CheckTruth

func CheckTruth(vals ...string) bool

CheckTruth check string true or not

func Contains

func Contains(elems []string, elem string) bool

func FileWithLineNum

func FileWithLineNum() string

FileWithLineNum return the file name and line number of the current file

func IsValidDBNameChar

func IsValidDBNameChar(c rune) bool

func JoinNestedRelationNames

func JoinNestedRelationNames(relationNames []string) string

JoinNestedRelationNames nested relationships like `Manager__Company`

func NestedRelationName

func NestedRelationName(prefix, name string) string

NestedRelationName nested relationships like `Manager__Company`

func SQLParser added in v1.0.1

func SQLParser(sql string, size int) (pageSql, countPage string, err error)

SQLParser SQL解析

func SplitNestedRelationName

func SplitNestedRelationName(name string) []string

SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`

func ToString

func ToString(value interface{}) string

func ToStringKey

func ToStringKey(values ...interface{}) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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