code: func main() {
  	mathrand.SeedRandomly()
  
  	ctx := context.Background()
  	ctx = gologger.StdConfig.Use(ctx)
  
  	// Exit with the specified return code.
  	rc := 0
  	defer func() {
  		log.Infof(log.SetField(ctx, "returnCode", rc), "Terminating.")
  		os.Exit(rc)
  	}()
  
  	paniccatcher.Do(func() {
  		rc = mainImpl(ctx, chromeinfra.DefaultAuthOptions(), os.Args[1:])
  	}, func(p *paniccatcher.Panic) {
  		log.Fields{
  			"panic.error": p.Reason,
  		}.Errorf(ctx, "Panic caught in main:\n%s", p.Stack)
  		rc = runtimeErrorReturnCode
  	})
  }
docs: // Main execution function. This immediately jumps to 'mainImpl' and uses its
  // result as an exit code.