From a720c2c16b442b668db465fbbc70740cfc7ddee4 Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 8 Sep 2022 00:31:26 +0800 Subject: Load config from file or cli. --- config.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config.go (limited to 'config.go') diff --git a/config.go b/config.go new file mode 100644 index 0000000..8d3f8f1 --- /dev/null +++ b/config.go @@ -0,0 +1,7 @@ +package main + +import "bilibili-livestream-archiver/recording" + +type GlobalConfig struct { + Tasks []recording.TaskConfig `mapstructure:"tasks"` +} -- cgit v1.2.3