Skip to content

Commit 20bcf39

Browse files
authored
Merge pull request #7522 from segmentio/neelkanth-kaushik/LIBRARIES-2459
Updated incorrect installation URL in Analytics-Go documentation
2 parents 22a4b2a + ecf8832 commit 20bcf39

File tree

1 file changed

+2
-4
lines changed
  • src/connections/sources/catalog/libraries/server/go

1 file changed

+2
-4
lines changed

src/connections/sources/catalog/libraries/server/go/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ All of Segment's server-side libraries are built for high-performance, so you ca
1818
Install `analytics-go` using `go get`:
1919

2020
```bash
21-
go get gopkg.in/segmentio/analytics-go.v3
21+
go get github.com/segmentio/analytics-go/v3
2222
```
2323

2424
Then import it and initialize an instance with your source's **Write Key**. Of course, you'll want to replace `YOUR_WRITE_KEY` with your actual **Write Key** which you can find in Segment under your source settings.
2525

2626
```go
2727
package main
2828

29-
import "gopkg.in/segmentio/analytics-go.v3"
29+
import "github.com/segmentio/analytics-go/v3"
3030

3131
func main() {
3232
client := analytics.New("YOUR_WRITE_KEY")
@@ -414,8 +414,6 @@ for example, with [govendor](https://github.com/kardianos/govendor){:target="_bl
414414
govendor fetch github.com/segmentio/[email protected]
415415
```
416416

417-
Alternatively, you can also use [`gopkg.in`](http://labix.org/gopkg.in){:target="_blank”}. First run `go get gopkg.in/segmentio/analytics-go.v3` and replace your imports with `import "gopkg.in/segmentio/analytics-go.v3"`.
418-
419417
To help with migrating your code, Segment recommends checking out a simple example that is written in [v2](https://github.com/segmentio/analytics-go/blob/v2.0/examples/track.go) and [v3](https://github.com/segmentio/analytics-go/blob/v3.0/examples/track.go) so you can easily see the differences.
420418

421419
The first difference you'll notice is that `Client` is now an interface. It has a single method - `Enqueue` that can accept messages of all types.

0 commit comments

Comments
 (0)