Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/go-gorm/gorm
/ Replace
Method
Replace
schema/naming.go:29–29 · schema/naming.go::Replacer.Replace
(name string)
Source
from the content-addressed store, hash-verified
27
// Replacer replacer
interface
like strings.Replacer
28
type
Replacer
interface
{
29
Replace(name string) string
30
}
31
32
var
_ Namer = (*NamingStrategy)(nil)
Callers
15
AddVar
Method · 0.65
Replace
Method · 0.65
Build
Method · 0.65
buildCondition
Method · 0.65
BuildQuerySQL
Function · 0.65
TestBelongsToAssociation
Function · 0.65
TestBelongsToAssociationUnscoped
Function · 0.65
TestHasOneAssociation
Function · 0.65
TestPolymorphicHasOneAssociation
Function · 0.65
TestHasOneAssociationReplaceWithNonValidValue
Function · 0.65
TestMany2ManyAssociation
Function · 0.65
TestMany2ManyOmitAssociations
Function · 0.65
Implementers
4
processor
callbacks.go
callback
callbacks.go
Association
association.go
CustomReplacer
schema/naming_test.go
Calls
no outgoing calls
Tested by
15
TestBelongsToAssociation
Function · 0.52
TestBelongsToAssociationUnscoped
Function · 0.52
TestHasOneAssociation
Function · 0.52
TestPolymorphicHasOneAssociation
Function · 0.52
TestHasOneAssociationReplaceWithNonValidValue
Function · 0.52
TestMany2ManyAssociation
Function · 0.52
TestMany2ManyOmitAssociations
Function · 0.52
TestMany2ManyAssociationForSlice
Function · 0.52
TestSingleTableMany2ManyAssociation
Function · 0.52
TestSingleTableMany2ManyAssociationForSlice
Function · 0.52
TestManyToManyWithMultiPrimaryKeys
Function · 0.52
TestManyToManyWithCustomizedForeignKeys
Function · 0.52