MCPcopy
hub / github.com/go-gorm/gorm / Man

Struct Man

tests/submodel_test.go:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7)
8
9type Man struct {
10 ID int
11 Age int
12 Name string
13 Detail string
14}
15
16// Panic-safe BeforeUpdate hook that checks for Changed("age")
17func (m *Man) BeforeUpdate(tx *gorm.DB) (err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected