Documentation ¶
Index ¶
- func DecodeJSON(reader io.Reader, v interface{}) errs.Err
- func HTTPGet(url string) (statusCode int, body string, err errs.Err)
- func HTTPPostJSON(url string, jsonPayload interface{}) (statusCode int, body string, err errs.Err)
- func HTTPPostString(url string, str string) (statusCode int, body string, err errs.Err)
- func JSON(v interface{}) (string, errs.Err)
- func JSONBytes(v interface{}) ([]byte, errs.Err)
- func JSONBytesIndent(v interface{}, prefix, indent string) ([]byte, errs.Err)
- func JSONMustPrettyPrint(v interface{}) string
- func JSONReader(v interface{}) (reader io.Reader, err errs.Err)
- func Open(path string) (file *os.File, err errs.Err)
- func ParseJSON(jsonStr string, v interface{}) errs.Err
- func ParseJSONBytes(jsonBytes []byte, v interface{}) errs.Err
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPPostJSON ¶
func HTTPPostString ¶
func JSONBytesIndent ¶
func JSONMustPrettyPrint ¶
func JSONMustPrettyPrint(v interface{}) string
func ParseJSONBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.