httpread

package
v1.4.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON added in v1.4.16

func JSON(f func() (*http.Response, error), v interface{}) error

JSON reads a http response into a data container using a json decoder. The response is checked for its status code and the http.Response.Body is closed.

func String added in v1.4.16

func String(f func() (*http.Response, error)) (string, error)

String reads a http response into a string. The response is checked for its status code and the http.Response.Body is closed.

func XML added in v1.4.16

func XML(f func() (*http.Response, error), v interface{}) error

XML reads a http response into a data container using an XML decoder. The response is checked for its status code and the http.Response.Body is closed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL