Skip to content

Releases: containeroo/dynflags

v0.1.0

16 Apr 09:24
ac31ebd
Compare
Choose a tag to compare

🆕 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{} with any
    Modernized the codebase by replacing all occurrences of interface{} with Go 1.18+’s any 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

04 Feb 10:45
86cf055
Compare
Choose a tag to compare

fixes

18 Dec 16:20
96a474f
Compare
Choose a tag to compare
v0.0.2

fix package path

Initial Release

18 Dec 16:08
502edf4
Compare
Choose a tag to compare
v0.0.1

init