util

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentTypeFromHeaders added in v0.11.0

func GetContentTypeFromHeaders(headers map[string][]string) string

func GetMinifier added in v0.11.0

func GetMinifier() *minify.M

func GetRequestBody added in v0.10.0

func GetRequestBody(request *http.Request) (string, error)

GetRequestBody will read the http.Request body io.ReadCloser and will also set the buffer to the original value as the buffer will be empty after reading it.

func GetResponseBody added in v0.10.0

func GetResponseBody(response *http.Response) (string, error)

GetResponseBody will read the http.Response body io.ReadCloser and will also set the buffer to the original value as the buffer will be empty after reading it.

func MinifyJson added in v0.11.0

func MinifyJson(toMinify string) (string, error)

func MinifyXml added in v0.11.0

func MinifyXml(toMinify string) (string, error)

func PointerToString

func PointerToString(value *string) string

func SortQueryString added in v0.10.1

func SortQueryString(query string) string

SortQueryString will sort a http query string alphanumerically by key and then by value.

func StringToPointer

func StringToPointer(value string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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