main loads the config

This commit is contained in:
Christine Dodrill 2015-10-09 21:49:26 -07:00
parent 24a035a161
commit cd53c93c93
1 changed files with 20 additions and 1 deletions

View File

@ -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!")
}