Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #10 Co-authored-by: andrey <andrey@4devs.io> Co-committed-by: andrey <andrey@4devs.io>
19 lines
327 B
Go
19 lines
327 B
Go
package generate
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/iancoleman/strcase"
|
|
)
|
|
|
|
var (
|
|
ErrNotFound = errors.New("not found")
|
|
ErrAlreadyExist = errors.New("already exist")
|
|
ErrWrongType = errors.New("wrong type")
|
|
ErrWrongFormat = errors.New("wrong format")
|
|
)
|
|
|
|
func FuncName(in string) string {
|
|
return strcase.ToCamel(in)
|
|
}
|