...

Source file src/github.com/gobuffalo/flect/name/tablize.go

Documentation: github.com/gobuffalo/flect/name

     1  package name
     2  
     3  // Tableize returns an underscore, pluralized string
     4  //	User = users
     5  //	Person = persons
     6  //	Admin/Widget = admin_widgets
     7  func Tableize(s string) string {
     8  	return New(s).Tableize().String()
     9  }
    10  
    11  // Tableize returns an underscore, pluralized string
    12  //	User = users
    13  //	Person = persons
    14  //	Admin/Widget = admin_widgets
    15  func (i Ident) Tableize() Ident {
    16  	return Ident{i.Underscore().Pluralize()}
    17  }
    18  

View as plain text