mirror of
https://github.com/cjdenio/jia.git
synced 2024-11-25 17:13:56 +00:00
21 lines
323 B
Go
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)
|
|
}
|