generate: prohibit "private_etc" package names

This commit is contained in:
Nigel Tao committed 2023-10-25 17:48:52 +11:00
1 parent 8cfde80759
commit 2890d76845
1 file changed
+3
+3
View File
@@ -88,6 +88,9 @@ func checkPackageName(s string) string {
"config", "implementation", "include_guard", "initialize", "private", "version":
return ""
}
if strings.HasPrefix(s, "private_") {
return ""
}
return s
}