jia/cmd/jia.go

22 lines
311 B
Go
Raw Normal View History

2020-06-30 09:23:49 +00:00
package main
import (
"fmt"
"github.com/ifvictr/jia/pkg/jia"
"github.com/joho/godotenv"
)
func init() {
godotenv.Load()
}
func main() {
fmt.Println("Starting Jia…")
config := jia.NewConfig()
2020-07-27 09:41:00 +00:00
// Start receiving messages
2021-05-02 19:39:41 +00:00
fmt.Printf("Listening on port %d\n", config.Port)
2020-07-27 09:41:00 +00:00
jia.StartServer(config)
2020-06-30 09:23:49 +00:00
}