mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
chore: miscellaneous updates
This commit is contained in:
parent
a9492c70f6
commit
86fcf54b6e
4 changed files with 18 additions and 12 deletions
|
|
@ -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, "\"", "'")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue