mirror of
https://github.com/stashapp/stash.git
synced 2025-12-19 23:03:54 +01: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()}
|
|
}
|