common

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.2.0

func Debug(prefix string, obj interface{}, stdout *Stdout)

func FormatBasicAuth added in v0.9.14

func FormatBasicAuth(user, pass string) string

func HttpGetRaw added in v0.2.0

func HttpGetRaw(client *http.Client, URL, contentType string, authorization string) ([]byte, error)

func HttpGetRawWithHeaders added in v0.2.0

func HttpGetRawWithHeaders(client *http.Client, URL string, headers map[string]string) ([]byte, error)

func HttpPostRaw added in v0.2.0

func HttpPostRaw(client *http.Client, URL, contentType string, authorization string, raw []byte) ([]byte, error)

func HttpPostRawOutCode added in v0.7.2

func HttpPostRawOutCode(client *http.Client, URL, contentType