Documentation ¶
Index ¶
- func AssertEqual(x, y interface{}) bool
- func CheckTruth(vals ...string) bool
- func Contains(elems []string, elem string) bool
- func FileWithLineNum() string
- func IsValidDBNameChar(c rune) bool
- func JoinNestedRelationNames(relationNames []string) string
- func NestedRelationName(prefix, name string) string
- func RTrimSlice[T any](v []T, trimLen int) []T
- func SplitNestedRelationName(name string) []string
- func ToString(value interface{}) string
- func ToStringKey(values ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶ added in v0.2.19
func AssertEqual(x, y interface{}) bool
func FileWithLineNum ¶
func FileWithLineNum() string
FileWithLineNum return the file name and line number of the current file
func IsValidDBNameChar ¶ added in v0.2.38
func JoinNestedRelationNames ¶ added in v1.25.0
JoinNestedRelationNames nested relationships like `Manager__Company`
func NestedRelationName ¶ added in v1.25.0
NestedRelationName nested relationships like `Manager__Company`
func RTrimSlice ¶ added in v1.25.12
RTrimSlice Right trims the given slice by given length
func SplitNestedRelationName ¶ added in v1.25.0
SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`
func ToStringKey ¶
func ToStringKey(values ...interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.