package utils

Import Path
	gorm.io/gorm/utils (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 6 packages

Involved Source Files utils.go
Package-Level Functions (total 12)
func AssertEqual(x, y interface{}) bool
CallerFrame retrieves the first relevant stack frame outside of GORM's internal implementation files. It skips: - GORM's core source files (identified by gormSourceDir prefix) - Exclude test files (*_test.go) - go-gorm/gen's Generated files (*.gen.go)
CheckTruth check string true or not
func Contains(elems []string, elem string) bool
FileWithLineNum return the file name and line number of the current file
JoinNestedRelationNames nested relationships like `Manager__Company`
NestedRelationName nested relationships like `Manager__Company`
Type Parameters: T: any RTrimSlice Right trims the given slice by given length
SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`
func ToString(value interface{}) string
func ToStringKey(values ...interface{}) string