stash/vendor/github.com/gobuffalo/flect/name/key.go
2019-02-09 04:32:50 -08:00

14 lines
210 B
Go

package name
import (
"strings"
)
func Key(s string) string {
return New(s).Key().String()
}
func (i Ident) Key() Ident {
s := strings.Replace(i.String(), "\\", "/", -1)
return New(strings.ToLower(s))
}