-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
34 lines (26 loc) · 783 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"fmt"
"net/http"
"github.com/faiz-gh/go-lang/internal/handlers"
"github.com/go-chi/chi"
log "github.com/sirupsen/logrus"
)
func main() {
log.SetReportCaller(true)
var r *chi.Mux = chi.NewRouter()
handlers.Handler(r)
fmt.Println("Starting Go Api Service")
fmt.Println(`
##### ##### ### ###### ######
## ## ### ### ## ## ## ## ##
## ## ## ## ## ## ## ##
## #### ## ## ## ## ##### ##
## ## ## ## ####### ## ##
## ## ### ### ## ## ## ##
##### ##### ## ## #### ###### `)
err := http.ListenAndServe("localhost:8080", r)
if err != nil {
log.Error(err)
}
}