files

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplatesFolder = Join("assets", "templates")

Functions

func CopyFileFromExisting

func CopyFileFromExisting(id, folder string, fileName string) error

func CreateFile

func CreateFile(folder string, fileName string) (*os.File, error)

func CreateFileFromTemplateWithData

func CreateFileFromTemplateWithData(id, folder string, fileName string, data interface{}) error

func CreateFileFromTemplateWithDataAndTarget

func CreateFileFromTemplateWithDataAndTarget(id, folder string, sourceFileName string, targetFileName string, data interface{}) error

func CreateFileWithId

func CreateFileWithId(id string, folder string, fileName string) (*os.File, error)

func CreateFolder

func CreateFolder(id, folder string) error

func CreateFolderToKeep

func CreateFolderToKeep(id string, folder string) (*os.File, error)

func CreateFolderWithFile

func CreateFolderWithFile(id string, folder, fileName string) (*os.File, error)

func GenerateId

func GenerateId() (string, error)

func Join

func Join(names ...string) string

func Zip

func Zip(source string, w io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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