diff --git a/cmd/RolesColapser/main.go b/cmd/RolesGenerator/main.go similarity index 97% rename from cmd/RolesColapser/main.go rename to cmd/RolesGenerator/main.go index 86ac3f3..28acee7 100644 --- a/cmd/RolesColapser/main.go +++ b/cmd/RolesGenerator/main.go @@ -78,7 +78,7 @@ func main() { pkgString, _, _ := strings.Cut(string(data), "\n") outBuilder := strings.Builder{} - outBuilder.WriteString(`// This file is autogenerated, do not edit + outBuilder.WriteString(`// Code generated by cmd/RolesGenerator DO NOT EDIT. // If you need to refresh the content, run go generate again `) outBuilder.WriteString(pkgString + "\n\n") diff --git a/storage/roles.go b/storage/roles.go index a20c6d7..7e1c464 100644 --- a/storage/roles.go +++ b/storage/roles.go @@ -4,7 +4,7 @@ import ( "gorm.io/gorm" ) -//go:generate go build -o RolesGenerator ../cmd/RolesColapser/main.go +//go:generate go build -o RolesGenerator ../cmd/RolesGenerator/main.go //go:generate ./RolesGenerator -input=roles.go -output=rolesUtil.go //go:generate rm RolesGenerator