setupcloser

package module
v0.0.0-...-f64d4fb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 4 Imported by: 0

README

closelistener

simple go package for creating a go routine to listen for close command

Install

go install github.com/awkwardjake/closelistener

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseListener

func CloseListener()

SetupCloseHandler creates a 'listener' on a new goroutine which will notify the program if it receives an interrupt from the OS. We could then handle this by calling a "clean up procedure" and exiting the program.

Types

This section is empty.

Jump to

Keyboard shortcuts

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