Skip to content

gtmartem/go-daemons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pure golang daemons implementation

./crond - cron-daemon

Example

package main

import (
	"fmt"
	"github.com/gtmartem/go-daemons/crond"
)

func main() {
	c := crond.NewCron("", f)
	c.Start()
}

func f() {
	fmt.Println("im done")
}

Output

INFO[2020-03-15 21:41:56] starting cron-daemon work                    
im done
^CINFO[2020-03-15 21:42:03] cron-daemon shutdown  

Releases

No releases published

Packages

No packages published

Languages