@@ -22,7 +22,7 @@ var version = "development"
2222
2323func main () {
2424 if err := mainCmd (); err != nil {
25- fmt .Printf ("google-analytics-proxy: %v" , err )
25+ fmt .Printf ("google-analytics-proxy: %v" , err ) //nolint:forbidigo
2626 os .Exit (1 )
2727 }
2828}
@@ -33,37 +33,37 @@ func mainCmd() error {
3333 // listenAddress is the host and port that the proxy will listen on.
3434 // See net.Dial for details of the address format.
3535 // Example: "localhost:8080" "0.0.0.0:8080" ":8080"
36- var listenAddress = os .Getenv ("LISTEN" )
36+ listenAddress : = os .Getenv ("LISTEN" )
3737
3838 // upstreamEndpoint is the address of the upstream service to be
3939 // proxied.
4040 // Example: "https://example.com" "http://:80"
41- var upstreamEndpoint = os .Getenv ("UPSTREAM_ENDPOINT" )
41+ upstreamEndpoint : = os .Getenv ("UPSTREAM_ENDPOINT" )
4242
4343 // upstreamHostname optionally is the hostname to used when proxying
4444 // requests to the upstream. Used for hostname based routing. If empty, the
4545 // value of $GOOGLE_ANALYTICS_PROPERTY_NAME will be used.
4646 // Example: "example.com"
47- var upstreamHostname = os .Getenv ("UPSTREAM_HOSTNAME" )
47+ upstreamHostname : = os .Getenv ("UPSTREAM_HOSTNAME" )
4848
4949 // googleAnalyticsTrackingID is the tracking id for the Google
5050 // Analytics property that you want to track pageview events for. This
5151 // can be found in your Google Analytics dashboard.
5252 // Example: "UA-123456789-1"
53- var googleAnalyticsTrackingID = os .Getenv ("GOOGLE_ANALYTICS_TRACKING_ID" )
53+ googleAnalyticsTrackingID : = os .Getenv ("GOOGLE_ANALYTICS_TRACKING_ID" )
5454
5555 // googleAnalyticsPropertyName is the name for the Google Analytics
5656 // property that you want to track pageview events for. This can be
5757 // found in your Google Analytics dashboard. Will be used as the upstream
5858 // hostname in proxied requests if $UPSTREAM_HOSTNAME is empty.
5959 // Example: "example.com"
60- var googleAnalyticsPropertyName = os .Getenv ("GOOGLE_ANALYTICS_PROPERTY_NAME" )
60+ googleAnalyticsPropertyName : = os .Getenv ("GOOGLE_ANALYTICS_PROPERTY_NAME" )
6161
6262 // googleAnalyticsDryRun can optionally be used to disable reporting
6363 // pageview events with Google Analytics. See strconv.ParseBool() for
6464 // acceptable values.
6565 // Example: "true"
66- var googleAnalyticsDryRun = os .Getenv ("GOOGLE_ANALYTICS_DRY_RUN" )
66+ googleAnalyticsDryRun : = os .Getenv ("GOOGLE_ANALYTICS_DRY_RUN" )
6767
6868 // Parse the upstream endpoint address to ensure that it's valid.
6969 upstreamURL , err := url .Parse (upstreamEndpoint )
0 commit comments