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:
kaidaguerre
2022-10-05 15:30:57 +01:00
committed by GitHub
parent 404dd35e21
commit ef845286c1
78 changed files with 1435 additions and 928 deletions

View File

@@ -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
}