Skip to content

Commit

Permalink
fixxing imports error
Browse files Browse the repository at this point in the history
  • Loading branch information
bgcicca committed Oct 19, 2024
1 parent df8b293 commit 085c049
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 19 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ So, if you’re looking for a friendly and efficient way to build web apps in Go
package main

import (
"express-go/req"
"express-go/router"
"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
"fmt"
)

Expand All @@ -52,8 +52,8 @@ func main() {
package main

import (
"express-go/req"
"express-go/router"
"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
"fmt"
)

Expand Down Expand Up @@ -81,8 +81,8 @@ func main() {
package main

import (
"express-go/req"
"express-go/router"
"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
"fmt"
)

Expand Down Expand Up @@ -114,8 +114,8 @@ package main

import (
"encoding/json"
"express-go/req"
"express-go/router"
"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
"log"
"strconv"
"fmt"
Expand Down
5 changes: 3 additions & 2 deletions examples/crud/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package main

import (
"encoding/json"
"express-go/req"
"express-go/router"
"fmt"
"log"
"strconv"

"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
)

type User struct {
Expand Down
5 changes: 3 additions & 2 deletions examples/http_header/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"express-go/req"
"express-go/router"
"fmt"

"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
)

// main sets up the application, defines a route that checks for an Authorization header,
Expand Down
5 changes: 3 additions & 2 deletions examples/json_data/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"express-go/req"
"express-go/router"
"fmt"

"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
)

// main sets up the application and defines a route that returns JSON data.
Expand Down
5 changes: 3 additions & 2 deletions examples/simple_route/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"express-go/req"
"express-go/router"
"fmt"

"github.com/BrunoCiccarino/express-go/req"
"github.com/BrunoCiccarino/express-go/router"
)

// main sets up the application, defines a route, and starts the server.
Expand Down
2 changes: 1 addition & 1 deletion router/route.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package router

import (
"express-go/req"
"github.com/BrunoCiccarino/express-go/req"
)

type Route struct {
Expand Down
3 changes: 2 additions & 1 deletion router/router.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package router

import (
"express-go/req"
"net/http"

"github.com/BrunoCiccarino/express-go/req"
)

type App struct {
Expand Down
3 changes: 2 additions & 1 deletion router/router_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package router

import (
"express-go/req"
"net/http"
"net/http/httptest"
"testing"

"github.com/BrunoCiccarino/express-go/req"
)

func TestAppRouteValid(t *testing.T) {
Expand Down

0 comments on commit 085c049

Please sign in to comment.