version

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version provides centralized version information for NFTBan. ============================================================================= NFTBan v1.0 - Centralized Version Management ============================================================================= SPDX-License-Identifier: MPL-2.0

IMPORTANT: This is the SINGLE SOURCE OF TRUTH for version strings. All binaries and modules should import this package instead of hardcoding. =============================================================================

Index

Constants

View Source
const (
	// ProductName is the official product name
	ProductName = "NFTBan"

	// CoreEngineName is the name of the core engine binary
	CoreEngineName = "nftban-core"
)

Core version constants - AUTO-GENERATED from Version

View Source
const (
	// SchemaVersion is the nftables schema version
	// This tracks changes to table/set/chain structure
	SchemaVersion = "0.7.3"

	// ConfigVersion is the configuration file format version
	ConfigVersion = "2"
)

Architecture version constants

Variables

View Source
var Version = "dev"

Version is injected at build time from VERSION file via -ldflags If not set during build, defaults to development version

Functions

func Banner(component string) string

Banner returns a formatted banner string for CLI output

func BannerWithEmoji

func BannerWithEmoji(emoji, component string) string

BannerWithEmoji returns a banner with emoji prefix

func FullVersion

func FullVersion() string

FullVersion includes the 'v' prefix (e.g., "v1.0.5")

func Major

func Major() int

Major returns the major version number

func Minor

func Minor() int

Minor returns the minor version number

func Patch

func Patch() int

Patch returns the patch version number

Types

This section is empty.

Jump to

Keyboard shortcuts

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