github.com/travisturner/buffalo@v0.11.1/meta/name.go (about) 1 package meta 2 3 import ( 4 "fmt" 5 "runtime" 6 7 "github.com/markbates/inflect" 8 ) 9 10 // Name is deprecated, please use github.com/markbates/inflect.Name instead. 11 func Name(s string) inflect.Name { 12 warningMsg := "Name is deprecated, and will be removed in v0.12.0. Use github.com/markbates/inflect.Name instead." 13 _, file, no, ok := runtime.Caller(1) 14 if ok { 15 warningMsg = fmt.Sprintf("%s Called from %s:%d", warningMsg, file, no) 16 } 17 return inflect.Name(s) 18 }