utils

package
v0.0.0-...-23c3c68 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExist

func CheckFileExist(filePath string) bool

func CleanPath

func CleanPath(filePath string) string

func Compress

func Compress() error

func CopyFile

func CopyFile(destinationFile, sourceFile string) bool

func CreateWriter

func CreateWriter(fileName string) (*multipart.Writer, *bytes.Buffer)

func Decrypt

func Decrypt(base64Encoded string) *bytes.Buffer

func Epoch

func Epoch(epoch int64) time.Time

func HttpRequest

func HttpRequest(method, url string, body *bytes.Buffer, httpHeaders map[string]string) *http.Response

func ReadBody

func ReadBody(res *http.Response) []byte

func WriteJSON

func WriteJSON(fileName string, data interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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