helper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileToBytes

func FileToBytes(filePath string) ([]byte, error)

FileToBytes method gets the data from selected file and retrieve the byte value of it

func ObjectToFile

func ObjectToFile(path string, object interface{}) error

ObjectToFile method save object in selected path

func Unzip

func Unzip(src string, dest string) ([]string, error)

Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

func Zip

func Zip(src string, dest string) error

Zip method for zip the selected src to specific destination

Types

This section is empty.

Jump to

Keyboard shortcuts

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