...

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

Documentation: github.com/gobuffalo/flect/name

     1  package name
     2  
     3  import (
     4  	"strings"
     5  )
     6  
     7  func Key(s string) string {
     8  	return New(s).Key().String()
     9  }
    10  
    11  func (i Ident) Key() Ident {
    12  	s := strings.Replace(i.String(), "\\", "/", -1)
    13  	return New(strings.ToLower(s))
    14  }
    15  

View as plain text