Releases: containeroo/dynflags
Releases · containeroo/dynflags
v0.1.0
🆕 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
v0.0.3
fixes
Initial Release
v0.0.1 init