Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFolder(path string) error
- func DecryptAES(str string, key string) (string, error)
- func EncryptAES(str string, key string) (string, error)
- func GenerateNewRandomKey() (string, error)
- func GetConfigBasePath() string
- func GetRandomInt(max int64) (int64, error)
- func ReadAllCsv(path string, delim rune) ([][]string, error)
- func WriteToCsv(header []string, body [][]string, path string, delim rune) error
Constants ¶
View Source
const ( DefaultLength = 15 DefaultExecutionTimeout = 5 DefaultConcurrentInserts = 5 DefaultConcurrentCsvWrites = 5 DbPath = "psgen.db" ConfigPath = "config" ConfigBaseDirName = ".psgen" LogsPath = "logs" )
Variables ¶
View Source
var ErrMalformedCsv = errors.New("malformed csv file")
Functions ¶
func CreateFolder ¶
func GenerateNewRandomKey ¶
func GetConfigBasePath ¶
func GetConfigBasePath() string
func GetRandomInt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.