go-units
go-units copied to clipboard
[feat] support "infinity" in ulimit values, as an alias to `-1`
Hello, team!
I'd like to use --ulimit memlock=infinity, as sys/resource.h provides RLIM_INFINITY. Fortunately, -1 is already supported as the infinity, so I've implemented a new keyword infinity as an alias to -1.
- [x] unit tests
@thaJeztah Could you take a look at this?