Skip to content

Commit

Permalink
method chaining setter
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ex committed Sep 13, 2024
1 parent 3d5a68a commit 810f331
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dialect/mysqldialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ func New() *Dialect {
return d
}

func NewWithLocation(loc string) *Dialect {
d := New()
func (d *Dialect) WithTimeLocation(loc string) *Dialect {
location, err := time.LoadLocation(loc)
if err != nil {
panic(fmt.Errorf("mysqldialect can't load provided location %s: %s", loc, err))
Expand Down

0 comments on commit 810f331

Please sign in to comment.