1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00
文件
tunasync/tests/httpClient.go
2016-04-30 16:41:58 +08:00

17 行
287 B
Go

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)
}