mirror of
https://github.com/Neur0toxine/demo-web-service-go.git
synced 2024-12-05 02:56:03 +03:00
18 lines
269 B
Go
18 lines
269 B
Go
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)
|
|
}
|
|
}
|