more tests
This commit is contained in:
parent
2e095270f5
commit
234f524a0e
7 changed files with 161 additions and 4 deletions
|
|
@ -36,6 +36,7 @@ func init() {
|
|||
}
|
||||
|
||||
func PostPayload(payload interface{}, url string) error {
|
||||
fmt.Println(restyC.BaseURL)
|
||||
_, err := restyC.R().SetBody(payload).Post(url)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue