shutdown

package
v0.0.0-...-b90bf7d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package shutdown allows specifying functions to run before application exits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeExit

func BeforeExit(f func())

BeforeExit specifies a function to run before exit.

func Exit

func Exit()

Exit runs shutdown functions and exits.

func ExitWithCode

func ExitWithCode(code int)

ExitWithCode runs shutdown functions and exits with specified code.

func Fatal

func Fatal(v ...interface{})

Fatal is the equivalent of fmt.Fatal but runs shutdown functions first.

func Fatalf

func Fatalf(format string, v ...interface{})

Fatalf is the equivalent of fmt.Fatalf but runs shutdown functions first.

func IsActive

func IsActive() bool

IsActive returns whether the exit handler is currently executing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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