First Release

This commit is contained in:
Mukhtar Akere
2024-08-25 05:36:47 +01:00
commit d54706fed6
20 changed files with 1682 additions and 0 deletions

22
main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"flag"
"goBlack/cmd"
"goBlack/common"
"log"
)
func main() {
var configPath string
flag.StringVar(&configPath, "config", "config.json", "path to the config file")
flag.Parse()
// Load the config file
conf, err := common.LoadConfig(configPath)
if err != nil {
log.Fatal(err)
}
cmd.Start(conf)
}