demo-web-service-go/main.go

18 lines
269 B
Go
Raw Normal View History

2021-09-14 12:24:35 +03:00
package main
import (
"log"
"time"
"github.com/brianvoe/gofakeit/v6"
)
func main() {
gofakeit.Seed(time.Now().UnixNano())
go processSignals()
r := router()
if err := r.Run(":8080"); err != nil {
log.Fatalf("cannot start the server on :8080 > %s", err)
}
}