From 4f716f56579677f69c5ef4b486051018a52020be Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Thu, 28 Feb 2019 13:37:26 +0100 Subject: Latex template location in Config --- config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index 1db87a9..734983d 100644 --- a/config.go +++ b/config.go @@ -13,6 +13,7 @@ import ( type Config struct { Database string //`toml:"database"` + Folder string //`toml:"folder"` Name string //`toml:"name"` Street string //`toml:"street"` Zip string //`toml:"zip"` @@ -85,10 +86,11 @@ func makeNewTOML(gibts bool) { n := "" file, err := homedir.Expand("~/.mywork.db") checkErr(err) - config = Config{file, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n} + config = Config{file, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n} } //fmt.Println("Whats Your Namecount\n") database := getNewInterInput("DB File Path: ", config.Database, nli) + folder := getNewInterInput("Template Folder: ", config.Folder, nli) name := getNewInterInput("Whats your Name?: ", config.Name, nli) street := getNewInterInput("Street: ", config.Street, nli) zip := getNewInterInput("Zip Code: ", config.Zip, nli) @@ -105,7 +107,7 @@ func makeNewTOML(gibts bool) { iban := getNewInterInput("IBAN: ", config.Iban, nli) bic := getNewInterInput("BIC: ", config.Bic, nli) - conf := Config{database, name, street, zip, city, country, telefon, mobile, mail, url, taxid, bankacc, banklz, bankname, iban, bic} + conf := Config{database, folder, name, street, zip, city, country, telefon, mobile, mail, url, taxid, bankacc, banklz, bankname, iban, bic} buf := new(bytes.Buffer) err = toml.NewEncoder(buf).Encode(conf) -- cgit v1.2.3