jia/cmd/jia.go
2020-07-27 02:41:00 -07:00

21 lines
323 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.Println(fmt.Sprintf("Listening on port %d", config.Port))
jia.StartServer(config)
}