Source file src/cmd/internal/telemetry/telemetry_bootstrap.go

     1  // Copyright 2024 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build cmd_go_bootstrap || compiler_bootstrap
     6  
     7  package telemetry
     8  
     9  import "flag"
    10  
    11  type dummyCounter struct{}
    12  
    13  func (dc dummyCounter) Inc() {}
    14  
    15  func Start()                                                              {}
    16  func StartWithUpload()                                                    {}
    17  func Inc(name string)                                                     {}
    18  func NewCounter(name string) dummyCounter                                 { return dummyCounter{} }
    19  func NewStackCounter(name string, depth int) dummyCounter                 { return dummyCounter{} }
    20  func CountFlags(name string, flagSet flag.FlagSet)                        {}
    21  func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {}
    22  func Mode() string                                                        { return "" }
    23  func SetMode(mode string) error                                           { return nil }
    24  func Dir() string                                                         { return "" }
    25  

View as plain text