MCPcopy
hub / github.com/prometheus/client_golang / main

Function main

tutorials/whatsup/reference/main.go:45–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43)
44
45func main() {
46 opts, err := internal.ParseOptions(os.Args)
47 if err != nil {
48 log.Fatalf("Error: %v", err)
49 }
50
51 if err := runMain(opts); err != nil {
52 // Use %+v for github.com/efficientgo/core/errors error to print with stack.
53 log.Fatalf("Error: %+v", errors.Wrapf(err, "%s", flag.Arg(0)))
54 }
55}
56
57func runMain(opts internal.Config) (err error) {
58 // Create tracer, so the application can be instrumented with traces.

Callers

nothing calls this directly

Calls 2

ParseOptionsFunction · 0.92
runMainFunction · 0.70

Tested by

no test coverage detected