main loads the config
This commit is contained in:
parent
24a035a161
commit
cd53c93c93
|
@ -1,7 +1,26 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"shuo-irc.com/config"
|
||||
)
|
||||
|
||||
var (
|
||||
conf *config.Config
|
||||
|
||||
confPath = flag.String("conf", "./scream.ini", "path to config file")
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
var err error
|
||||
conf, err = config.Load(*confPath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fmt.Println("Hello world!")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue