mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +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":
|
"config", "implementation", "include_guard", "initialize", "private", "version":
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(s, "private_") {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user