bootstrap

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap() error

func Cleanup

func Cleanup()

Cleanup will call all registered cleanup handlers.

func DeferCleanup

func DeferCleanup(handler func())

DeferCleanup same as RegisterCleanup, but last handler will be called first.

func Exit

func Exit(code int)

Exit will call all registered cleanup handlers and then exit.

func Go

func Go() (err error)

func Init

func Init() (err error)

func Register

func Register(fn ...func() error)

func RegisterCleanup

func RegisterCleanup(handler func())

RegisterCleanup append custom cleanup handler, the handler will be invoked by `Cleanup` function. first handler will be called first

func RegisterGo

func RegisterGo(fn ...func() error)

func Run

func Run() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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