mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
generate: prohibit "private_etc" package names
This commit is contained in:
1 parent
8cfde80759
commit
2890d76845
1 file changed
+3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user