https://github.com/edoger/zkits-runner
An easy-to-use task runner and its surrounding toolset.
https://github.com/edoger/zkits-runner
go golang runner zkits
Last synced: 9 months ago
JSON representation
An easy-to-use task runner and its surrounding toolset.
- Host: GitHub
- URL: https://github.com/edoger/zkits-runner
- Owner: edoger
- License: apache-2.0
- Created: 2020-03-31T14:36:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-17T14:53:26.000Z (over 5 years ago)
- Last Synced: 2025-04-16T01:17:14.974Z (about 1 year ago)
- Topics: go, golang, runner, zkits
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZKits Runner Library #
[](https://github.com/edoger/zkits-runner)
[](https://travis-ci.org/edoger/zkits-runner)
[](https://ci.appveyor.com/project/edoger56924/zkits-runner/branch/master)
[](https://coveralls.io/github/edoger/zkits-runner?branch=master)
[](https://www.codacy.com/manual/edoger/zkits-runner/dashboard?utm_source=github.com&utm_medium=referral&utm_content=edoger/zkits-runner&utm_campaign=Badge_Grade)
[](https://goreportcard.com/report/github.com/edoger/zkits-runner)
[](https://github.com/edoger/zkits-runner)
## About ##
This package is a library of ZKits project.
This library provides a convenient subtask runner for applications.
We can easily control the running order of subtasks and exit them in reverse order.
## Install ##
```sh
go get -u -v github.com/edoger/zkits-runner
```
## Usage ##
```go
package main
import (
"github.com/edoger/zkits-runner"
)
func main() {
r := runner.New()
err := r.Run(runner.NewTaskFromFunc(nil, func() error {
// Do something.
return nil
}))
// Wait system exit.
if err := r.Wait(); err != nil {
// Handle error.
}
}
```
## License ##
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)