update: use env file to config server

This commit is contained in:
Kenta420-Poom 2023-09-20 10:39:11 +07:00
parent 59407840cd
commit d8f9858ea0
8 changed files with 541 additions and 12 deletions

View file

@ -10,7 +10,7 @@ import (
)
func main() {
s := NewServer(8080)
s := NewServer()
serverCtx, serverStopCtx := context.WithCancel(context.Background())
sig := make(chan os.Signal, 1)