-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Go] Slim down SDK installation step (#11362)
- Loading branch information
Showing
1 changed file
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
When using Go Modules, you do not need to install anything to start using Sentry with your Go program. Import the SDK and the `go` tool will automatically download the latest version of the SDK when you next build your program. | ||
|
||
```go | ||
import ( | ||
"github.com/getsentry/sentry-go" | ||
) | ||
``` | ||
|
||
With or without Go Modules, to use the latest version of the SDK, run: | ||
Install our Go SDK using `go get`: | ||
|
||
```shell | ||
go get github.com/getsentry/sentry-go | ||
``` | ||
|
||
Consult the [Go documentation on Modules](https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies) for more information on how to manage dependencies. | ||
Consult the [Go documentation](https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies) for more information on how to manage your dependencies. |