version

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version holds Anyserve's own version and compares versions.

Index

Constants

This section is empty.

Variables

View Source
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

func Satisfies(have, need string) bool

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.

func Valid

func Valid(v string) bool

Valid reports whether v is a release version like 1.2.3 or v1.2.3.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL