mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
chore: miscellaneous updates
This commit is contained in:
parent
c3d3f6ab62
commit
5e7330d5e7
4 changed files with 18 additions and 12 deletions
|
|
@ -21,5 +21,5 @@ func PrintYAML(data any) {
|
|||
if err != nil {
|
||||
log.Error().Err(err).Msgf("failed to marshal scanned results to JSON")
|
||||
}
|
||||
fmt.Printf("%s\n", string(b))
|
||||
fmt.Print(string(b))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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