Skip to content

Commit

Permalink
chore: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh committed Jul 2, 2024
1 parent c7548ec commit cf78e0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gormschema/gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type (
isTriggerOption()
apply(*schemaBuilder)
}
// Trigger defines a trigger.
Trigger struct {
opts []TriggerOption
}
Expand Down Expand Up @@ -80,6 +81,7 @@ func New(dialect string, opts ...Option) *Loader {
return l
}

// NewTrigger receives a list of TriggerOption to build a Trigger.
func NewTrigger(opts ...TriggerOption) Trigger {
return Trigger{opts: opts}
}
Expand Down

0 comments on commit cf78e0d

Please sign in to comment.