Skip to content

Commit

Permalink
fix: module name + bump go version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradumnasaraf committed Jun 3, 2023
1 parent 12de7a0 commit 9396ebf
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
body: ${{ steps.changelog.outputs.clean_changelog }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ go run main.go

The easiest way to run this project in cloud with use of [Gitpod](https://www.gitpod.io/). Just click on the button below to start the project in Gitpod.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#github.com/pradumnasaraf/Contributors)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#github.com/Pradumnasaraf/Contributors)

### Docker Compose

Expand Down
4 changes: 2 additions & 2 deletions database/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"time"

"github.com/pradumnasaraf/Contributors/config"
"github.com/pradumnasaraf/Contributors/graph/model"
"github.com/Pradumnasaraf/Contributors/config"
"github.com/Pradumnasaraf/Contributors/graph/model"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/pradumnasaraf/Contributors
module github.com/Pradumnasaraf/Contributors

go 1.19
go 1.20

require (
github.com/99designs/gqlgen v0.17.31
Expand Down
2 changes: 1 addition & 1 deletion gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ resolver:
# gqlgen will search for any type names in the schema in these go packages
# if they match it will use them, otherwise it will generate them.
autobind:
# - "github.com/pradumnasaraf/Contributors/graph/model"
# - "github.com/Pradumnasaraf/Contributors/graph/model"

# This section declares type mapping between the GraphQL and go type systems
#
Expand Down
2 changes: 1 addition & 1 deletion graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package handler
import (
"github.com/99designs/gqlgen/graphql/handler"
"github.com/99designs/gqlgen/graphql/playground"
"github.com/Pradumnasaraf/Contributors/graph"
"github.com/gin-gonic/gin"
"github.com/pradumnasaraf/Contributors/graph"
)

// Graphql handler
Expand Down
2 changes: 1 addition & 1 deletion middleware/basicAuth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package middleware
import (
"os"

"github.com/Pradumnasaraf/Contributors/config"
"github.com/gin-gonic/gin"
"github.com/pradumnasaraf/Contributors/config"
)

func BasicAuth() gin.HandlerFunc {
Expand Down
7 changes: 4 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"log"

"github.com/Pradumnasaraf/Contributors/config"
"github.com/Pradumnasaraf/Contributors/handler"
"github.com/Pradumnasaraf/Contributors/middleware"
"github.com/gin-gonic/gin"
"github.com/pradumnasaraf/Contributors/config"
"github.com/pradumnasaraf/Contributors/handler"
"github.com/pradumnasaraf/Contributors/middleware"
)

func main() {
Expand All @@ -21,4 +21,5 @@ func main() {

// Auto catch the PORT variable if it exists
log.Fatal(router.Run())

}

0 comments on commit 9396ebf

Please sign in to comment.