# go-cron **Repository Path**: zhangss3/go-cron ## Basic Information - **Project Name**: go-cron - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-01 - **Last Updated**: 2025-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README go-cron ========= Simple golang wrapper over `github.com/robfig/cron` and `os/exec` as a cron replacement. Additionally the application opens a HTTP port that can be used as a healthcheck. ## usage `go-cron -s "* * * * *" -p 8080 -- /bin/bash -c "echo 1"` Check the healthcheck: ``` $ curl -v localhost:18080 * Rebuilt URL to: localhost:18080/ * Hostname was NOT found in DNS cache * Trying ::1... * Connected to localhost (::1) port 18080 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.37.1 > Host: localhost:18080 > Accept: */* > < HTTP/1.1 200 OK < Content-Type: application/json < Date: Wed, 11 Mar 2015 12:59:07 GMT < Content-Length: 237 < { "Running": {}, "Last": { "Exit_status": 0, "Stdout": "1\n", "Stderr": "", "ExitTime": "2015-03-11T13:59:05+01:00", "Pid": 14420, "StartingTime": "2015-03-11T13:59:05+01:00" }, "Schedule": "*/5 * * * *" * Connection #0 to host localhost left intact } ```