diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2020-01-28 22:06:16 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2020-01-28 22:06:16 +0100 |
commit | 2c055e3ca001ee6064677a0db16172148e5edcef (patch) | |
tree | 46073b7ea2df58520ffc560af72ae2bdabf8bdd6 /utils.go | |
parent | ce81b97e80ada42a223a7fd45c5abaa5c9667d75 (diff) |
Added tentative page rendering, outline main function
Diffstat (limited to 'utils.go')
-rw-r--r-- | utils.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -6,15 +6,15 @@ import ( ) type config struct { - docsRoot string - templateFile string - targetDir string - cssFile string - baseUrl string + DocsRoot string + TemplateFile string + TargetDir string + CssFile string + BaseUrl string } func readConfig(file string) (cfg config, err error) { _, err = toml.DecodeFile(file, &cfg) - cfg.baseUrl = strings.TrimSuffix(cfg.baseUrl, "/") + cfg.BaseUrl = strings.TrimSuffix(cfg.BaseUrl, "/") return } |