2
0

httpClient.go 323 B

12345678910111213141516171819
  1. //go:build ignore
  2. // +build ignore
  3. package main
  4. import (
  5. "fmt"
  6. "github.com/tuna/tunasync/internal"
  7. )
  8. func main() {
  9. cfg, err := internal.GetTLSConfig("rootCA.crt")
  10. fmt.Println(err)
  11. var msg map[string]string
  12. resp, err := internal.GetJSON("https://localhost:5002/", &msg, cfg)
  13. fmt.Println(err)
  14. fmt.Println(resp)
  15. }