autoinit

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

README

Outrig Auto-Init

This package provides automatic initialization of Outrig when imported, similar to how net/http/pprof works.

Usage

Simply import this package with a blank identifier to automatically initialize Outrig with default settings:

import _ "github.com/outrigdev/outrig/autoinit"

This is equivalent to calling:

outrig.Init("", nil)

When to Use

Use this package when you want the simplest possible Outrig integration with zero configuration. The auto-init approach is perfect for:

  • Quick debugging sessions
  • Development environments
  • Applications where you don't need custom Outrig configuration

When NOT to Use

Don't use this package if you need:

  • Custom application names
  • Custom configuration settings
  • Error handling from the Init call
  • Control over when Outrig is initialized

In those cases, use the regular outrig.Init() function directly.

Documentation

Overview

Package autoinit provides automatic initialization of Outrig when imported. Simply import this package with a blank identifier to automatically call outrig.Init("", nil):

import _ "github.com/outrigdev/outrig/autoinit"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL