utils

package
v0.0.0-...-e029def Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(msg string)

func FailIf

func FailIf(err error, msg string)

func RandomString

func RandomString(n int) string

Types

type QueryMap

type QueryMap map[string]string

type Response

type Response struct {
	Status        uint64
	StatusMessage string
	Body          string
}

func SendRequest

func SendRequest(method, endpoint string, queryParams QueryMap, formValues url.Values) Response

Jump to

Keyboard shortcuts

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