File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 20
20
uses : actions/setup-go@v2
21
21
with :
22
22
go-version : ${{ matrix.go }}
23
- - run : go test ./... -coverprofile=cov.out -covermode=atomic
23
+ - run : GOEXPERIMENT=nocoverageredesign go test ./... -coverprofile=cov.out -covermode=atomic
24
24
- name : Codecov
25
25
uses : codecov/codecov-action@v2
26
26
with :
Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"log"
6
6
"net/http"
7
+ "slices"
7
8
8
9
"github.com/chris-ramon/golang-scaffolding/config"
9
10
"github.com/chris-ramon/golang-scaffolding/db"
@@ -12,7 +13,6 @@ import (
12
13
"github.com/chris-ramon/golang-scaffolding/domain/gql"
13
14
"github.com/chris-ramon/golang-scaffolding/domain/users"
14
15
"github.com/chris-ramon/golang-scaffolding/pkg/jwt"
15
- "github.com/chris-ramon/golang-scaffolding/pkg/route"
16
16
)
17
17
18
18
func main () {
@@ -69,11 +69,12 @@ func main() {
69
69
}
70
70
adminRoutes := admin .NewRoutes (adminHandlers )
71
71
72
- routes := []route.Route {}
73
- routes = append (routes , authRoutes .All ()... )
74
- routes = append (routes , gqlRoutes .All ()... )
75
- routes = append (routes , adminRoutes .All ()... )
76
- routes = append (routes , usersRoutes .All ()... )
72
+ routes := slices .Concat (
73
+ authRoutes .All (),
74
+ gqlRoutes .All (),
75
+ adminRoutes .All (),
76
+ usersRoutes .All (),
77
+ )
77
78
78
79
for _ , r := range routes {
79
80
router .HandleFunc (fmt .Sprintf ("%s %s" , r .HTTPMethod , r .Path ), r .Handler )
You can’t perform that action at this time.
0 commit comments