Files
odo/vendor/gopkg.in/segmentio/analytics-go.v3
Anand Kumar Singh 722020678f Migrate to ginkgo v2 (#5809)
* migrate to ginkgo v2 for tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update to ginkgo/v2

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update to ginkgo v2

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use ginkgo binary for tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update to ginkgo v2

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* remove GOFLAG while downloading ginkgo

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* remove FlakeAttempts from tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use ginkgo v2.1.4

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* mod cleanup and use mod to run ginkgo

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* remove unnecessary goget-ginkgo from sctipt

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-07-06 10:31:01 +00:00
..
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00
2022-07-06 10:31:01 +00:00
2022-07-06 10:31:01 +00:00
2022-07-06 10:31:01 +00:00
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00
2022-07-06 10:31:01 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00
2022-07-06 10:31:01 +00:00
2021-03-26 11:43:09 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00
2021-03-26 11:43:09 +00:00
2022-07-06 10:31:01 +00:00

analytics-go Circle CI go-doc

Segment analytics client for Go.

Installation

The package can be simply installed via go get, we recommend that you use a package version management system like the Go vendor directory or a tool like Godep to avoid issues related to API breaking changes introduced between major versions of the library.

To install it in the GOPATH:

go get https://github.com/segmentio/analytics-go

Documentation

The links bellow should provide all the documentation needed to make the best use of the library and the Segment API:

Usage

package main

import (
    "os"

    "github.com/segmentio/analytics-go"
)

func main() {
    // Instantiates a client to use send messages to the segment API.
    client := analytics.New(os.Getenv("SEGMENT_WRITE_KEY"))

    // Enqueues a track event that will be sent asynchronously.
    client.Enqueue(analytics.Track{
        UserId: "test-user",
        Event:  "test-snippet",
    })

    // Flushes any queued messages and closes the client.
    client.Close()
}

License

The library is released under the MIT license.