diff --git a/dialect/dialect.go b/dialect/dialect.go index 5a829735..4120985e 100644 --- a/dialect/dialect.go +++ b/dialect/dialect.go @@ -8,7 +8,7 @@ type Dialect interface { ReturningStr(key string) string } -func NewDialect(driver string) Dialect { +func New(driver string) Dialect { var d Dialect switch driver { case "postgres": diff --git a/main.go b/main.go index c835b231..dd234758 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,7 @@ type DB struct { func Open(driver, source string) (db DB, err error) { db.db, err = sql.Open(driver, source) - db.dialect = dialect.NewDialect(driver) + db.dialect = dialect.New(driver) return }