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
FileWithLineNum return the file name and line number of the current file
func IsInvalidDBNameChar(c rune) bool
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 ToStringKey(values ...interface{}) string
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |