mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user