-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdoc.go
More file actions
32 lines (32 loc) · 782 Bytes
/
doc.go
File metadata and controls
32 lines (32 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Package request HTTP client for golang
// - Make http requests from Golang
// - Intercept request and response
// - Transform request and response data
//
// package main
//
// import (
// "github.com/monaco-io/request"
// )
//
// func main() {
// var body = struct {
// A string
// B int
// }{A: "A", B: 001}
// var result interface{}
//
// client := request.Client{
// URL: "https://google.com",
// Method: "POST",
// Query: map[string]string{"hello": "world"},
// JSON: body,
// }
// if err := client.Send().Scan(&result).Error(); err != nil{
// // handle error
// }
//
// // str := client.Send().String()
// // bytes := client.Send().Bytes()
// ```
package request