SkillAgentSearch skills...

Ctrlc

Go library that provides an easy way of having a task that is context-aware and deals with SIGINT and SIGTERM signals

Install / Use

/learn @caarlos0/Ctrlc
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ctrlc

CTRL-C is a Go library that provides an easy way of having a task that is context-aware and deals with SIGINT and SIGTERM signals.

Usage

Check the _examples folder.

You can run it like this:

$ go run _examples/main.go
# will fail because the last task returns an error

$ go run _examples/main.go -timeout 1s
# will fail due to context timeout

$ go run _examples/main.go
# press ctrl-c
# will cancel the context due to interrupt and error
View on GitHub
GitHub Stars14
CategoryDevelopment
Updated1mo ago
Forks1

Languages

Go

Security Score

90/100

Audited on Feb 1, 2026

No findings