Help us shape the future of Go! Take the 2026 Go Developer Survey

telemetry

package
v0.11.796 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OptOut       = false
	AppVersion   = ""
	RunID        = ""
	TemplateName = "" // Stores template name for init command (protected by lock)

)
View Source
var TelemetryKey string

Functions

func AfterCommand

func AfterCommand(ctx context.Context, cmd *cli.Command) error

func BeforeCommand

func BeforeCommand(ctx context.Context, c *cli.Command) (context.Context, error)

func ErrorCommand

func ErrorCommand(ctx context.Context, cmd *cli.Command, err error) error

func Init

func Init() io.Closer

func SendEvent

func SendEvent(event string, properties analytics.Properties)

func SendEventWithAssetStats

func SendEventWithAssetStats(event string, stats map[string]int, cmd *cli.Command)

func SetTemplateName added in v0.11.420

func SetTemplateName(name string)

SetTemplateName stores the template name for telemetry (thread-safe).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL