package netreq import ( "fmt" "testing" ) func TestGet(t *testing.T) { url := "http://localhost:5173/api/v1/proclamations" body, err := GetJSON(url) if err != nil { t.Fatalf("GetJSON failed: %v", err) } if len(body) == 0 { t.Fatal("GetJSON returned empty body") } cnt := string(body) fmt.Printf("%s\n", cnt) }