filesint

package
v0.0.0-...-da644f5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(srcDir string, parentDir string, newFile string) (*os.File, error)

CreateFile takes a src directory, parent directory and a file name and creates a new file at srcDrc/parentDir/newFile.*

func DataDump

func DataDump(srcDir string, fileLoc string) ([]byte, error)

DataDump returns a data dump of all the data stored within a specific file

func GetDirs

func GetDirs() map[string]string

GetDirs returns all the directories associated with important information within the api, this includes: assets, sensitive data and database data

func LoadFile

func LoadFile(srcDir string, fileLoc string) (*os.File, error)

LoadFile takes a src directory... e.g assets, sensitive, e.t.c and a path to a specific file within that directory and returns a file pointer to that file

Types

This section is empty.

Jump to

Keyboard shortcuts

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