chore: miscellaneous updates

This commit is contained in:
David Allen 2025-05-26 22:51:58 -06:00
parent a9492c70f6
commit 86fcf54b6e
Signed by: towk
GPG key ID: 0430CDBE22619155
4 changed files with 18 additions and 12 deletions

View file

@ -1,10 +0,0 @@
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, "\"", "'")
}