tunasync/tests/httpClient.go
Shengqi Chen ef32197fef
Run go fmt
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2025-01-11 16:00:34 +08:00

20 lines
323 B
Go

//go:build ignore
// +build ignore
package main
import (
"fmt"
"github.com/tuna/tunasync/internal"
)
func main() {
cfg, err := internal.GetTLSConfig("rootCA.crt")
fmt.Println(err)
var msg map[string]string
resp, err := internal.GetJSON("https://localhost:5002/", &msg, cfg)
fmt.Println(err)
fmt.Println(resp)
}