├── .github └── ISSUE_TEMPLATE.md ├── .gitignore ├── .golangci.yml ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── bus ├── README.md ├── bus.go ├── bus_test.go └── doc_test.go ├── cmd └── xcode │ └── main.go ├── concurrent ├── README.md ├── doc_test.go ├── runner.go └── runner_test.go ├── debugutil ├── README.md ├── doc_test.go ├── http_dump.go ├── http_dump_test.go ├── http_log_round_tripper.go ├── http_log_round_tripper_test.go ├── prettysprint.go └── prettysprint_test.go ├── event ├── README.md ├── doc_test.go ├── hook.go └── hook_test.go ├── go.mod ├── go.sum ├── internal └── ast │ └── ast.go ├── lease ├── README.md ├── doc_test.go ├── lease.go └── lease_test.go ├── loop ├── README.md ├── doc_test.go ├── loop.go └── loop_test.go ├── multierror ├── README.md ├── doc_test.go ├── muliterror.go └── muliterror_test.go ├── promise ├── README.md ├── doc_test.go ├── promise.go └── promise_test.go ├── retry ├── README.md ├── doc_test.go ├── retry.go ├── retry_test.go ├── roundtripper.go └── roundtripper_test.go ├── schedule ├── FIFO.png ├── README.md ├── doc_test.go ├── schedule.go └── schedule_test.go ├── singleton ├── README.md ├── doc_test.go ├── singleton.go └── singleton_test.go ├── worker ├── README.md ├── doc_test.go ├── worker.go └── worker_test.go ├── xhttp ├── xhttp.go └── xhttp_test.go └── xpanic ├── README.md ├── handlepanic.go └── handlepanic_test.go /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/.travis.yml -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/README.md -------------------------------------------------------------------------------- /bus/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/bus/README.md -------------------------------------------------------------------------------- /bus/bus.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/bus/bus.go -------------------------------------------------------------------------------- /bus/bus_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/bus/bus_test.go -------------------------------------------------------------------------------- /bus/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/bus/doc_test.go -------------------------------------------------------------------------------- /cmd/xcode/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/cmd/xcode/main.go -------------------------------------------------------------------------------- /concurrent/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/concurrent/README.md -------------------------------------------------------------------------------- /concurrent/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/concurrent/doc_test.go -------------------------------------------------------------------------------- /concurrent/runner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/concurrent/runner.go -------------------------------------------------------------------------------- /concurrent/runner_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/concurrent/runner_test.go -------------------------------------------------------------------------------- /debugutil/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/README.md -------------------------------------------------------------------------------- /debugutil/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/doc_test.go -------------------------------------------------------------------------------- /debugutil/http_dump.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/http_dump.go -------------------------------------------------------------------------------- /debugutil/http_dump_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/http_dump_test.go -------------------------------------------------------------------------------- /debugutil/http_log_round_tripper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/http_log_round_tripper.go -------------------------------------------------------------------------------- /debugutil/http_log_round_tripper_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/http_log_round_tripper_test.go -------------------------------------------------------------------------------- /debugutil/prettysprint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/prettysprint.go -------------------------------------------------------------------------------- /debugutil/prettysprint_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/debugutil/prettysprint_test.go -------------------------------------------------------------------------------- /event/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/event/README.md -------------------------------------------------------------------------------- /event/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/event/doc_test.go -------------------------------------------------------------------------------- /event/hook.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/event/hook.go -------------------------------------------------------------------------------- /event/hook_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/event/hook_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/go.sum -------------------------------------------------------------------------------- /internal/ast/ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/internal/ast/ast.go -------------------------------------------------------------------------------- /lease/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/lease/README.md -------------------------------------------------------------------------------- /lease/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/lease/doc_test.go -------------------------------------------------------------------------------- /lease/lease.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/lease/lease.go -------------------------------------------------------------------------------- /lease/lease_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/lease/lease_test.go -------------------------------------------------------------------------------- /loop/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/loop/README.md -------------------------------------------------------------------------------- /loop/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/loop/doc_test.go -------------------------------------------------------------------------------- /loop/loop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/loop/loop.go -------------------------------------------------------------------------------- /loop/loop_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/loop/loop_test.go -------------------------------------------------------------------------------- /multierror/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/multierror/README.md -------------------------------------------------------------------------------- /multierror/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/multierror/doc_test.go -------------------------------------------------------------------------------- /multierror/muliterror.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/multierror/muliterror.go -------------------------------------------------------------------------------- /multierror/muliterror_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/multierror/muliterror_test.go -------------------------------------------------------------------------------- /promise/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/promise/README.md -------------------------------------------------------------------------------- /promise/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/promise/doc_test.go -------------------------------------------------------------------------------- /promise/promise.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/promise/promise.go -------------------------------------------------------------------------------- /promise/promise_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/promise/promise_test.go -------------------------------------------------------------------------------- /retry/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/retry/README.md -------------------------------------------------------------------------------- /retry/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/retry/doc_test.go -------------------------------------------------------------------------------- /retry/retry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/retry/retry.go -------------------------------------------------------------------------------- /retry/retry_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/retry/retry_test.go -------------------------------------------------------------------------------- /retry/roundtripper.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/retry/roundtripper.go -------------------------------------------------------------------------------- /retry/roundtripper_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/retry/roundtripper_test.go -------------------------------------------------------------------------------- /schedule/FIFO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/schedule/FIFO.png -------------------------------------------------------------------------------- /schedule/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/schedule/README.md -------------------------------------------------------------------------------- /schedule/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/schedule/doc_test.go -------------------------------------------------------------------------------- /schedule/schedule.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/schedule/schedule.go -------------------------------------------------------------------------------- /schedule/schedule_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/schedule/schedule_test.go -------------------------------------------------------------------------------- /singleton/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/singleton/README.md -------------------------------------------------------------------------------- /singleton/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/singleton/doc_test.go -------------------------------------------------------------------------------- /singleton/singleton.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/singleton/singleton.go -------------------------------------------------------------------------------- /singleton/singleton_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/singleton/singleton_test.go -------------------------------------------------------------------------------- /worker/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/worker/README.md -------------------------------------------------------------------------------- /worker/doc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/worker/doc_test.go -------------------------------------------------------------------------------- /worker/worker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/worker/worker.go -------------------------------------------------------------------------------- /worker/worker_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/worker/worker_test.go -------------------------------------------------------------------------------- /xhttp/xhttp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/xhttp/xhttp.go -------------------------------------------------------------------------------- /xhttp/xhttp_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/xhttp/xhttp_test.go -------------------------------------------------------------------------------- /xpanic/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/xpanic/README.md -------------------------------------------------------------------------------- /xpanic/handlepanic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/xpanic/handlepanic.go -------------------------------------------------------------------------------- /xpanic/handlepanic_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/donutloop/toolkit/HEAD/xpanic/handlepanic_test.go --------------------------------------------------------------------------------