22 lines
346 B
Go
22 lines
346 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strconv"
|
|
|
|
"github.com/anotherhadi/eleakxir/backend/api"
|
|
"github.com/anotherhadi/eleakxir/backend/server"
|
|
)
|
|
|
|
func main() {
|
|
server := server.NewServer()
|
|
fmt.Println("Starting the server.")
|
|
|
|
api.Init(server)
|
|
|
|
err := server.Router.Run(":" + strconv.Itoa(server.Settings.Port))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|