Skip to content

A subset of the syscall package for terminating processes. This package provides a Signal type that implements the encoding.TextMarshaller and encoding.TextUnmarshaler interfaces for text-based serialization and deserialization.

License

Notifications You must be signed in to change notification settings

josestg/sigterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sigterm

A subset of the syscall package for terminating processes. This package provides a Signal type that implements the encoding.TextMarshaller and encoding.TextUnmarshaler interfaces for text-based serialization and deserialization. It can be used for configuration management using environment variables1 or flags 2.

List of termination signals can be found in the GNU libc manual 3.

Installation

go get -u github.com/josestg/sigterm

Footnotes

  1. https://github.com/caarlos0/env

  2. https://golang.org/pkg/flag/#TextVar

  3. https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html

About

A subset of the syscall package for terminating processes. This package provides a Signal type that implements the encoding.TextMarshaller and encoding.TextUnmarshaler interfaces for text-based serialization and deserialization.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages