vendor dependencies with dep
This commit is contained in:
parent
93d8310491
commit
1384296a47
2712 changed files with 965742 additions and 0 deletions
17
vendor/github.com/go-pg/pg/orm/inflection.go
generated
vendored
Normal file
17
vendor/github.com/go-pg/pg/orm/inflection.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package orm
|
||||
|
||||
import (
|
||||
"github.com/jinzhu/inflection"
|
||||
)
|
||||
|
||||
var tableNameInflector func(string) string
|
||||
|
||||
func init() {
|
||||
SetTableNameInflector(inflection.Plural)
|
||||
}
|
||||
|
||||
// SetTableNameInflector overrides the default func that pluralizes
|
||||
// model name to get table name, e.g. my_article becomes my_articles.
|
||||
func SetTableNameInflector(fn func(string) string) {
|
||||
tableNameInflector = fn
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue