From a9420ef25ff517269b9d0109c62e2a9dfb84fb77 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Sabzevar Date: Sat, 13 Nov 2021 15:33:44 +0100 Subject: [PATCH] Installation capability is removed from go get. Need to use go install instead. "Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead." Source: https://golang.org/doc/go-get-install-deprecation The -i flag for go install is also deprecated and go install is enough. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2427f1c..300381c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ We’re constantly assessing opportunities to expand our support for other langu ## Requirements **Install** ``` -go get github.com/microsoft/ApplicationInsights-Go/appinsights +go install github.com/microsoft/ApplicationInsights-Go/appinsights ``` **Get an instrumentation key** >**Note**: an instrumentation key is required before any data can be sent. Please see the "[Getting an Application Insights Instrumentation Key](https://github.com/microsoft/AppInsights-Home/wiki#getting-an-application-insights-instrumentation-key)" section of the wiki for more information. To try the SDK without an instrumentation key, set the instrumentationKey config value to a non-empty string.