Skip to content

v0.1.0

Latest
Compare
Choose a tag to compare
@gi8lino gi8lino released this 16 Apr 09:24
· 2 commits to master since this release
ac31ebd

๐Ÿ†• 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