This commit is contained in:
Nikola Jokic
2026-06-17 00:56:20 +02:00
parent cecd6388f6
commit 6b0e899208
20 changed files with 194 additions and 144 deletions
+10
View File
@@ -1,6 +1,8 @@
package actionsgithubcom
import (
"encoding/json"
"k8s.io/apimachinery/pkg/util/rand"
)
@@ -25,3 +27,11 @@ func RandStringRunes(n int) string {
}
return string(b)
}
func mustJSON(v any) string {
val, err := json.Marshal(v)
if err != nil {
panic(err)
}
return string(val)
}