Rename roles generator

This commit is contained in:
Melody Becker 2024-09-18 11:15:44 +02:00
parent 3b43040733
commit 2eb222751c
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ func main() {
pkgString, _, _ := strings.Cut(string(data), "\n") pkgString, _, _ := strings.Cut(string(data), "\n")
outBuilder := strings.Builder{} 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 // If you need to refresh the content, run go generate again
`) `)
outBuilder.WriteString(pkgString + "\n\n") outBuilder.WriteString(pkgString + "\n\n")

View file

@ -4,7 +4,7 @@ import (
"gorm.io/gorm" "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 ./RolesGenerator -input=roles.go -output=rolesUtil.go
//go:generate rm RolesGenerator //go:generate rm RolesGenerator