utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET    = "GET"
	POST   = "POST"
	PUT    = "PUT"
	DELETE = "DELETE"
)

Variables

This section is empty.

Functions

func DoHttpCall

func DoHttpCall(method, url string, body []byte, headers map[string]string) ([]byte, error)

func FormatStrArrWithQuotes added in v0.0.4

func FormatStrArrWithQuotes(in []string) []string

func FormatStrWithQuotes added in v0.0.4

func FormatStrWithQuotes(in string) string

func GetJsonValueAtPath

func GetJsonValueAtPath(in []byte, path string) string

func IsFailedResponse

func IsFailedResponse(in []byte) bool

func IsSuccessResponse

func IsSuccessResponse(in []byte) bool

func ToISTTime

func ToISTTime(in time.Time) time.Time

func ToIstTimeFromEpoch

func ToIstTimeFromEpoch(epoch int64) time.Time

func ToTime

func ToTime(epoch int64) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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