caarlos0 / go-version

Version library extracted from sigs.k8s.io/release-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-version

This package is extracted from sigs.k8s.io/release-utils.

There were a couple of subtle changes made, so it has 0 dependencies and can be used with anything.

Credits goes to the Kubernetes Authors.

Changes

Full list of changes from the original library:

  • drop all dependencies:
    • use std testing only
    • allow to pass a previously generated ASCII art instead of generating it at runtime
  • optional overrides:
    • caller can pass one or more functions that change the version info, so callers are free to use whatever methods they want to provide some options
    • a range of functions are provided by the library
  • added more fields:
    • URL
    • BuiltBy
  • testing
    • added more tests, hopefully preventing breaking changes in the future

About

Version library extracted from sigs.k8s.io/release-utils

License:Other


Languages

Language:Go 100.0%