You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
307 B
Go
23 lines
307 B
Go
3 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"caj-larsson/bog/application"
|
||
|
"io/ioutil"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
content, err := ioutil.ReadFile("default.toml")
|
||
|
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
config, err := application.ConfigFromToml(string(content))
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
bog := application.New(config)
|
||
|
bog.Run()
|
||
|
}
|