๐ Release Highlights
๐ New Features
-
Listen Address Support
Added two new dynamic flag types:ListenAddrValue
: for validating a single TCP listen address (e.g.,:9090
,127.0.0.1:8080
)ListenAddrSlicesValue
: for handling and validating multiple listen addresses as slices
These types use
net.ResolveTCPAddr
under the hood to ensure valid bindable addresses. They are ideal for server configuration flags such as metrics endpoints or listener bindings.โ Example:
group.ListenAddr("metrics", ":9090", "Address to bind metrics listener") group.ListenAddrSlices("endpoints", []string{":9090", "127.0.0.1:9091"}, "Multiple endpoints")
๐งผ Code Quality Improvements
- Replaced
interface{}
withany
Modernized the codebase by replacing all occurrences ofinterface{}
with Go 1.18+โsany
alias. This improves readability and conforms to idiomatic Go style without changing runtime behavior.
Full Changelog*: v0.0.3...v0.1.0