version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Reports the installed Varnish edition

Example
package main

import (
	"fmt"

	"github.com/varnish/varnish-go/version"
)

func main() {
	fmt.Printf("Varnish %s (%s)\n", version.Version(), version.Commit())
	if version.IsEnterprise() {
		fmt.Println("Enterprise edition")
	}
}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit() string

Commit returns the Varnish git commit hash.

func IsEnterprise

func IsEnterprise() bool

IsEnterprise reports whether the installed Varnish is Varnish Plus.

func Version

func Version() string

Version returns the Varnish version string (e.g. "9.0.0" or "6.0.17r3").

Types

This section is empty.

Jump to

Keyboard shortcuts

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