utils

package module
v0.0.0-...-26f7c7a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 8 Imported by: 1

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

func FormatStrArrWithQuotes(in []string) []string

func FormatStrWithQuotes

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