aboutsummaryrefslogtreecommitdiffstats
path: root/src/p_options.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 21:00:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 21:00:12 +0200
commit584fef1f2d222c02b86a08bc66a6d6e598c31b31 (patch)
tree2fa7a415948e20ed3a2a57382292b61d264296f0 /src/p_options.go
parentOk (diff)
downloadgo2work-584fef1f2d222c02b86a08bc66a6d6e598c31b31.tar.gz
go2work-584fef1f2d222c02b86a08bc66a6d6e598c31b31.tar.bz2
go2work-584fef1f2d222c02b86a08bc66a6d6e598c31b31.tar.xz
go2work-584fef1f2d222c02b86a08bc66a6d6e598c31b31.tar.zst
go2work-584fef1f2d222c02b86a08bc66a6d6e598c31b31.zip
In progress
Diffstat (limited to 'src/p_options.go')
-rw-r--r--src/p_options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p_options.go b/src/p_options.go
index ea8f9f5..ad35d24 100644
--- a/src/p_options.go
+++ b/src/p_options.go
@@ -48,6 +48,7 @@
package main
import (
+ "github.com/BurntSushi/toml"
"log"
"os"
)
@@ -95,5 +96,6 @@ func find_options_file() string {
func parse_toml_file(options_file string, def_options Options) Options {
options := def_options
+ toml.DecodeFile(options_file, &options)
return options
}