Skip to content

eosswedenorg-go/pid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pid

Helper functions related to process id.

Install package

go get -u github.com/eosswedenorg-go/pid@latest

Functions

func Get() (int)

Returns the process id of the caller.

func Save(path string) (error)

Saves the process id of the caller to path on disk.

func Read(path string) (int, error)

Reads the process id stored in path on disk.

Author

Henrik Hautakoski - Sw/eden - henrik@eossweden.org