Documentation
¶
Index ¶
- func ByteStreamFileUpload(remoteURL, remoteFolder, filename string, datastream io.Reader) (string, error)
- func DoesPathExists(path string) bool
- func FormDataFileUpload(remoteURL string, filepath string) error
- func MustOpen(f string) (*os.File, error)
- func ReadFileToBytes(path string) ([]byte, error)
- func RenderTemplate(tpl string, data interface{}) (string, error)
- func WriteBytesToFile(bytes []byte, path string) error
- func WriteStringTofile(s string, path string) error
- func WriteTemplate(tpl string, data interface{}, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteStreamFileUpload ¶ added in v0.2.7
func ByteStreamFileUpload(remoteURL, remoteFolder, filename string, datastream io.Reader) (string, error)
ByteStreamFileUpload uploads file with given byte stream CREDIT: https://gist.github.com/ebraminio/576fdfdff425bf3335b51a191a65dbdb
func DoesPathExists ¶
DoesPathExists checks for existence of file
func FormDataFileUpload ¶ added in v0.2.7
FormDataFileUpload upload file using html file upload
func ReadFileToBytes ¶ added in v0.1.15
ReadFileToBytes reads files and returns the content as bytes
func RenderTemplate ¶
RenderTemplate renders template
func WriteBytesToFile ¶
WriteBytesToFile writes given bytes to file
func WriteStringTofile ¶
WriteStringTofile writes given string to file
func WriteTemplate ¶
WriteTemplate executes go template and writes the content to file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.