Documentation
¶
Overview ¶
Package version holds Anyserve's own version and compares versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = ""
Version is set at build time with -ldflags "-X github.com/jonsjava/anyserve/internal/version.Version=v1.2.3". Without it, Current falls back to the module version Go recorded (what `go install ...@v1.2.3` builds have).
Functions ¶
func Current ¶
func Current() string
Current returns this build's version, or "dev" when it isn't known.
func Satisfies ¶
Satisfies reports whether a build at version have can use something that requires version need. Development builds, and Go pseudo-versions from a repository with no release yet (v0.0.0-...), satisfy everything: they're built from the newest source. A pseudo-version after a release (v1.2.4-0.2026...-abcdef) counts as that release's next patch.
Types ¶
This section is empty.