v0.7.1 client readline removed for cross-platform compatibility with wasm, client logic fix fixes and refactor

This commit is contained in:
lixen committed 2025-11-13 14:37:44 -05:00
1 parent 9745955e00
commit 35804d4b9a
19 files changed
+308 -271

No files matched your search

+2 -2
View File
@@ -7,10 +7,10 @@ import (
)
// PrettyPrintJSON prints formatted JSON
func PrettyPrintJSON(v interface{}) {
func PrettyPrintJSON(v any) {
data, err := json.MarshalIndent(v, "", " ")
if err != nil {
fmt.Printf("%sError formatting JSON: %s%s\n", Red, err.Error(), Reset)
Print(Red, "Error formatting JSON: %s\n", err.Error())
return
}
fmt.Println(string(data))