mirror of
https://github.com/stashapp/stash.git
synced 2026-05-05 11:01:22 +02:00
17 lines
405 B
Go
17 lines
405 B
Go
package name
|
|
|
|
// Tableize returns an underscore, pluralized string
|
|
// User = users
|
|
// Person = persons
|
|
// Admin/Widget = admin_widgets
|
|
func Tableize(s string) string {
|
|
return New(s).Tableize().String()
|
|
}
|
|
|
|
// Tableize returns an underscore, pluralized string
|
|
// User = users
|
|
// Person = persons
|
|
// Admin/Widget = admin_widgets
|
|
func (i Ident) Tableize() Ident {
|
|
return Ident{i.Pluralize().Underscore()}
|
|
}
|