Adds builder action

This commit is contained in:
Alexey Khit
2022-08-20 15:53:38 +03:00
parent cc55281f12
commit d96af31f86
4 changed files with 86 additions and 1 deletions
+10 -1
View File
@@ -1,6 +1,7 @@
package app
import (
"flag"
"github.com/rs/zerolog"
"gopkg.in/yaml.v3"
"io"
@@ -9,7 +10,15 @@ import (
)
func Init() {
data, _ = os.ReadFile("go2rtc.yaml")
config := flag.String(
"config",
"go2rtc.yaml",
"Path to go2rtc configuration file",
)
flag.Parse()
data, _ = os.ReadFile(*config)
var cfg struct {
Mod map[string]string `yaml:"log"`