20 lines
426 B
Go
20 lines
426 B
Go
package main
|
|
|
|
import (
|
|
"github.com/haydenhargreaves/Potion/internal/app/server"
|
|
"github.com/haydenhargreaves/Potion/internal/infrastructure/logging"
|
|
"github.com/haydenhargreaves/Potion/internal/infrastructure/logging/loggers"
|
|
)
|
|
|
|
const PORT = 3000
|
|
|
|
func main() {
|
|
s := server.Init(PORT).Setup()
|
|
defer s.DB.Close()
|
|
|
|
logger := loggers.NewConsoleLogger()
|
|
logger.Log(logging.LogLevelDebug, "%s", "Hello world")
|
|
|
|
s.Start()
|
|
}
|