Simplified
This commit is contained in:
1 parent
5893ad898b
commit
984592b7fd
14 files changed
+784
-199
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
}
|
||||
Reference in new issue
Block a user