scripts

package
v0.0.0-...-3a6820e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(filepath string) error

EnsureDir returns an error if the folder already exist. This is wanted in the case we don't want to override it.

func GenerateSourceTemplate

func GenerateSourceTemplate(name string, templatePath string, data map[string]string) ([]byte, error)

GenerateSourceTemplate returns the generated template, filled with data or error.

func SaveFileToPath

func SaveFileToPath(filepath string, data []byte) error

SaveFileToPath will try to save the file in the filepath provided. It will create the directory, and return an error if it already exist

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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