node build fixed

This commit is contained in:
ra_ma
2025-09-20 14:08:38 +01:00
parent c6ebbe069d
commit 3d298fa434
1516 changed files with 535727 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
package util
import (
"fmt"
"strings"
"github.com/kr/pretty"
)
func Spew(v interface{}) {
fmt.Printf("%# v\n", pretty.Formatter(v))
}
func SpewMany(v ...interface{}) {
fmt.Println("\nSpewing values:")
for _, val := range v {
Spew(val)
}
fmt.Println()
}
func SpewT(v interface{}) string {
return fmt.Sprintf("%# v\n", pretty.Formatter(v))
}
func InlineSpewT(v interface{}) string {
return strings.ReplaceAll(SpewT(v), "\n", "")
}