chore: updated utility functions

This commit is contained in:
David Allen 2025-05-01 23:25:27 -06:00
parent 040e9ac808
commit 5e3332e080
Signed by: towk
GPG key ID: 0430CDBE22619155
5 changed files with 157 additions and 4 deletions

10
internal/util/strings.go Normal file
View file

@ -0,0 +1,10 @@
package util
import "strings"
func TidyJSON(s string) string {
s = strings.ReplaceAll(s, "\n", "")
s = strings.ReplaceAll(s, "\t", "")
s = strings.ReplaceAll(s, " ", "")
return strings.ReplaceAll(s, "\"", "'")
}