MCPcopy
hub / github.com/elastic/go-elasticsearch / init

Function init

_examples/instrumentation/apmelasticsearch.go:57–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55)
56
57func init() {
58 if tWidth < 0 {
59 tWidth = 0
60 }
61
62 if u, err := user.Current(); err != nil {
63 boldRed.Printf("ERROR: %s\n", err)
64 currentUser = "N/A"
65 } else {
66 currentUser = u.Username
67 }
68}
69
70func main() {
71 log.SetFlags(0)

Callers

nothing calls this directly

Calls 1

PrintfMethod · 0.80

Tested by

no test coverage detected