Documentation ¶
Index ¶
- func FileExists(r repos.Repository, fileName string) bool
- func GetFilePath(r repos.Repository, fileName string) (string, error)
- func MakeFilePath(r repos.Repository, fileName string) (string, error)
- func ReadJSONFile(r repos.Repository, fileName string, obj interface{}) error
- func WriteJSONFile(r repos.Repository, fileName string, obj interface{}) error
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.
Click to show internal directories.
Click to hide internal directories.