This commit is contained in:
Nikola Jokic
2026-07-14 19:54:25 +02:00
parent 1f5444706a
commit 3b15137eca
12 changed files with 247 additions and 168 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)
}