apigen/test/demo/cmd/main.go

22 lines
337 B
Go
Raw Permalink Normal View History

2021-10-03 14:39:42 +00:00
package main
import (
api "go.digitalcircle.com.br/tools/apigen/test/demo/cli"
"log"
"net/http"
"time"
)
func main() {
api.Host = "http://localhost:8080"
api.SetCli(&http.Client{})
res, err := api.Dosome(&api.SomeReq{
Fielda: "ASD123",
Fieldb: time.Unix(0, 0),
})
if err != nil {
panic(err)
}
log.Printf("%#v", res)
}