()
| 43 | ) |
| 44 | |
| 45 | func 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 | |
| 57 | func runMain(opts internal.Config) (err error) { |
| 58 | // Create tracer, so the application can be instrumented with traces. |
nothing calls this directly
no test coverage detected