jia/cmd/jia.go
2021-05-02 15:39:41 -04:00

21 lines
311 B
Go

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()
// Start receiving messages
fmt.Printf("Listening on port %d\n", config.Port)
jia.StartServer(config)
}