mirror of
https://github.com/turbot/steampipe.git
synced 2026-03-01 17:01:00 -05:00
Add support for sharing snapshots. Add snapshot output and export format for query and check. Add ability to run named dashboards. #2473
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
|
||||
// TODO: investigate turbot/go-kit/helpers
|
||||
func StringSliceDistinct(slice []string) []string {
|
||||
var res []string
|
||||
@@ -12,3 +14,12 @@ func StringSliceDistinct(slice []string) []string {
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
// UnquoteStringArray removes quote marks from elements of string array
|
||||
func UnquoteStringArray(stringArray []string) []string {
|
||||
res := make([]string, len(stringArray))
|
||||
for i, s := range stringArray {
|
||||
res[i] = strings.Replace(s, `"`, ``, -1)
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user