Rename roles generator
This commit is contained in:
parent
3b43040733
commit
2eb222751c
2 changed files with 2 additions and 2 deletions
|
@ -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")
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue