output

package
v0.0.0-...-42e5483 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(r repos.Repository, fileName string) bool

FileExists returns true if the given file name exists in the output directory

func GetFilePath

func GetFilePath(r repos.Repository, fileName string) (string, error)

GetFilePath returns the full path of a generated output file

func MakeFilePath

func MakeFilePath(r repos.Repository, fileName string) (string, error)

MakeFilePath returns the full path of a generated output file and make sure its parent dir exists

func ReadJSONFile

func ReadJSONFile(r repos.Repository, fileName string, obj interface{}) error

ReadJSONFile reads data from the given JSON file located in the output folder attached to the given repository

func WriteJSONFile

func WriteJSONFile(r repos.Repository, fileName string, obj interface{}) error

WriteJSONFile saves the given data to a JSON file located in the output folder attached to the given repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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