util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URL = "https://api.testandset.com"

URL url of the api

View Source
var Verbose bool

Verbose global verbose logging flag

Functions

func APIGet

func APIGet(path string) (resp *http.Response, err error)

APIGet run a GET request against the API

func ExitWithMessage

func ExitWithMessage(message string)

ExitWithMessage log message and exit with exit code 1

func SetUpLogging

func SetUpLogging()

SetUpLogging set up logging

func WriteVerboseMessage

func WriteVerboseMessage(message string)

WriteVerboseMessage write log message when verbose flag enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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