life

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package life will control the life of the program If you have some cleaning operations that the program needs to handle

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Start should be used at the end of main() function because it will block the program waitting for signals

func WhenExit

func WhenExit(liss ...Listener)

WhenExit will register a set of destructor functions

func WhenRestart

func WhenRestart(liss ...Listener)

WhenRestart ...

Types

type Listener

type Listener func()

Listener is a type of func()

Jump to

Keyboard shortcuts

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