io

package
v0.2.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteStreamFileUpload added in v0.2.7

func ByteStreamFileUpload(remoteURL, remoteFolder, filepath string) (string, error)

CREDIT: https://gist.github.com/ebraminio/576fdfdff425bf3335b51a191a65dbdb

func DoesPathExists

func DoesPathExists(path string) bool

func FormDataFileUpload added in v0.2.7

func FormDataFileUpload(remoteURL string, filepath string) error

func MustOpen added in v0.2.7

func MustOpen(f string) (*os.File, error)

func ReadFileToBytes added in v0.1.15

func ReadFileToBytes(path string) ([]byte, error)

func RenderTemplate

func RenderTemplate(tpl string, data interface{}) (string, error)

func WriteBytesToFile

func WriteBytesToFile(bytes []byte, path string) error

func WriteStringTofile

func WriteStringTofile(s string, path string) error

func WriteTemplate

func WriteTemplate(tpl string, data interface{}, path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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