util

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ModePermRW = 0600

TODO duplicate ModePermRW is the umask "-rw-------".

View Source
const ModePermRWX = 0700

TODO duplicate ModePermRWX is the umask "-rwx------".

Variables

This section is empty.

Functions

func FileExists

func FileExists(f string) (bool, error)

TODO duplicate FileExists returns true if f is an existing file or directory.

func ReadResponse

func ReadResponse(httpResponse *http.Response, responseStruct interface{}) error

func ReadResponseMap

func ReadResponseMap(httpResponse *http.Response) (map[string]interface{}, error)

func ReadResponseMessage

func ReadResponseMessage(httpResponse *http.Response) (string, error)

func SendRequest

func SendRequest(opt option.Global, method, url string, requestStruct interface{}) (*http.Response, error)

func WarnNoTLS

func WarnNoTLS(noTLS bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳