1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00
amfora/amfora.go

34 lines
494 B
Go
Raw Normal View History

2020-06-18 16:54:48 -04:00
package main
import (
"os"
"github.com/makeworld-the-better-one/amfora/config"
"github.com/makeworld-the-better-one/amfora/display"
)
func main() {
// err := logger.Init()
// if err != nil {
// panic(err)
// }
err := config.Init()
if err != nil {
panic(err)
}
display.Init()
if len(os.Args[1:]) == 0 {
// There should always be a tab
display.NewTab()
} else {
display.NewTab()
display.URL(os.Args[1])
2020-06-18 16:54:48 -04:00
}
if err = display.App.Run(); err != nil {
panic(err)
}
}