Documentation ¶ Index ¶ func Get(addr string) ([]byte, error) func Post(addr string, postData []byte) ([]byte, error) type Http func NewHttp(url string) *Http func (req *Http) Delete() ([]byte, error) func (req *Http) Get() ([]byte, error) func (req *Http) Post(data []byte) ([]byte, error) func (req *Http) Put(data []byte) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(addr string) ([]byte, error) func Post ¶ func Post(addr string, postData []byte) ([]byte, error) Types ¶ type Http ¶ type Http struct { // contains filtered or unexported fields } func NewHttp ¶ func NewHttp(url string) *Http func (*Http) Delete ¶ func (req *Http) Delete() ([]byte, error) func (*Http) Get ¶ func (req *Http) Get() ([]byte, error) func (*Http) Post ¶ func (req *Http) Post(data []byte) ([]byte, error) func (*Http) Put ¶ func (req *Http) Put(data []byte) ([]byte, error) Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.