exit

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockedUntilTerminate

func BlockedUntilTerminate()

func Register

func Register(fn EventHandler, name string)

Register 向退出事件列表中注册事件,事件将在程序退出时执行,按注册顺序执行

Types

type Config

type Config struct {
	Output bool `yaml:"output"`
}

type EventHandler

type EventHandler func(sig string) string

Jump to

Keyboard shortcuts

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