From 67c56877a9f03cdcdb8d23ef1c96aaa583482eca Mon Sep 17 00:00:00 2001 From: 38elements Date: Thu, 4 Apr 2024 22:37:07 +0900 Subject: [PATCH] Update `tools.go` url --- README.md | 2 +- docs/content/getting-started.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ad31efb797..ee803ba5823 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Still not convinced enough to use **gqlgen**? Compare **gqlgen** with other Go g cd example go mod init example -2. Add `github.com/99designs/gqlgen` to your [project's tools.go](https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module) +2. Add `github.com/99designs/gqlgen` to your [project's tools.go](https://go.dev/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module) printf '// +build tools\npackage tools\nimport (_ "github.com/99designs/gqlgen"\n _ "github.com/99designs/gqlgen/graphql/introspection")' | gofmt > tools.go diff --git a/docs/content/getting-started.md b/docs/content/getting-started.md index ba3c442406b..9c07fedcdac 100644 --- a/docs/content/getting-started.md +++ b/docs/content/getting-started.md @@ -24,7 +24,7 @@ cd gqlgen-todos go mod init github.com/[username]/gqlgen-todos ``` -Next, create a `tools.go` file and add gqlgen as a [tool dependency for your module](https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module). +Next, create a `tools.go` file and add gqlgen as a [tool dependency for your module](https://go.dev/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module). ```go //go:build tools