Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
dimuska139 committed Dec 20, 2021
1 parent aa49742 commit fa07df5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 20,12 @@ go get github.com/dimuska139/rawg-sdk-go
package main

import (
"context"
"fmt"
"net/http"
"strings"
"github.com/dimuska139/rawg-sdk-go"
"time"
"github.com/dimuska139/rawg-sdk-go/v3"
)

func main() {
Expand All @@ -41,7 43,9 @@ func main() {
ExcludeCollection(1).
WithoutParents()

data, total, err := client.GetGames(filter)
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(time.Millisecond*500))
defer cancel()
data, total, err := client.GetGames(ctx, filter)

...
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
module github.com/dimuska139/rawg-sdk-go
module github.com/dimuska139/rawg-sdk-go/v3

go 1.15

Expand Down

0 comments on commit fa07df5

Please sign in to comment.