application

package
v0.0.0-...-0d3b4e3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunning

func IsRunning() bool

func OnExit

func OnExit(handler func(), uniqKey ...string)

OnExit 注册退出处理函数,uniqKey为选填字段,如果传了会校验唯一性

func Run

func Run(main func() error) (err error)

func WaitExit

func WaitExit(handler ...func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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