refactor(master): add shim online for 0.0.7 version (#916)

* refactor(master): add auto-build

* refactor(master): add auto-build

* refactor(master): add shim online for 0.0.7 version

* refactor(master): add shim online for 0.0.7 version

* refactor(master): add shim online for 0.0.7 version
This commit is contained in:
cuisongliu
2022-04-07 15:34:22 +08:00
committed by GitHub
parent 66395ef574
commit c747d2dea7
14 changed files with 76 additions and 89 deletions
-11
View File
@@ -165,17 +165,6 @@ func RemoveDuplicate(list []string) []string {
func WrapExecResult(host, command string, output []byte, err error) error {
return fmt.Errorf("failed to execute command(%s) on host(%s): output(%s), error(%v)", command, host, output, err)
}
func DedupeStrSlice(in []string) []string {
m := make(map[string]struct{})
var res []string
for _, s := range in {
if _, ok := m[s]; !ok {
res = append(res, s)
m[s] = struct{}{}
}
}
return res
}
// RemoveStrSlice remove dst element from src slice
func RemoveStrSlice(src, dst []string) []string {