savaki / amplitude-go

a golang implementation of the amplitude client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

amplitude-go

Amplitude client for Go. For additional documentation visit https://amplitude.com/docs or view the godocs.

Installation

$ go get github.com/savaki/amplitude-go

Examples

Basic Client

Full example of a simple event tracker.

	apiKey := os.Getenv("AMPLITUDE_API_KEY")
	client := amplitude.New(apiKey)
	client.Publish(amplitude.Event{
		UserId:    "123",
		EventType: "sample",
	})

About

a golang implementation of the amplitude client


Languages

Language:Go 100.0%