mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-12 08:00:04 +01:00
feat(*): dryRun/debug mode/mode plugins/googleapis
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
parent
9aac714c32
commit
da77c8086d
26 changed files with 730 additions and 126 deletions
|
|
@ -26,8 +26,13 @@ import (
|
|||
|
||||
// ContainsEmpty is used to check whether items contains empty string
|
||||
func ContainsEmpty(items ...string) bool {
|
||||
return Contains(items, "")
|
||||
}
|
||||
|
||||
// Contains is used to check whether the target is in items
|
||||
func Contains(items []string, target string) bool {
|
||||
for _, item := range items {
|
||||
if item == "" {
|
||||
if item == target {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
@ -103,4 +108,4 @@ func GetBinaryFileName(name string) string {
|
|||
return name
|
||||
}
|
||||
return name
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue