versions

package
v0.0.0-...-01ad037 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentVersion = Version2000
	MinimalVersion = Version2000

	Version2000 RawVersion = "2.0" // Initial version
)

---------------------------------------------------------------- ---------------------- AVAILABLE VERSIONS ----------------------

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigVersion

type ConfigVersion struct {
	// contains filtered or unexported fields
}

ConfigVersion used in Config. Store version in structured format to compare version easily

func (*ConfigVersion) IsEqualTo

func (v *ConfigVersion) IsEqualTo(v2Str RawVersion) bool

func (*ConfigVersion) IsGreaterThan

func (v *ConfigVersion) IsGreaterThan(v2Str RawVersion) bool

func (*ConfigVersion) IsGreaterThanOrEqualTo

func (v *ConfigVersion) IsGreaterThanOrEqualTo(v2Str RawVersion) bool

func (*ConfigVersion) IsLessThan

func (v *ConfigVersion) IsLessThan(v2Str RawVersion) bool

func (*ConfigVersion) IsLessThanOrEqualTo

func (v *ConfigVersion) IsLessThanOrEqualTo(v2Str RawVersion) bool

func (*ConfigVersion) MarshalJSON

func (v *ConfigVersion) MarshalJSON() ([]byte, error)

func (ConfigVersion) ToRawVersion

func (v ConfigVersion) ToRawVersion() RawVersion

func (*ConfigVersion) UnmarshalJSON

func (v *ConfigVersion) UnmarshalJSON(data []byte) error

type ConfigVersionFormatError

type ConfigVersionFormatError struct {
	WrongVersion string
}

ConfigVersionFormatError

func (*ConfigVersionFormatError) Error

func (e *ConfigVersionFormatError) Error() string

type RawVersion

type RawVersion string

RawVersion used to write version in string format

func (RawVersion) ToConfigVersion

func (v RawVersion) ToConfigVersion() *ConfigVersion

Jump to

Keyboard shortcuts

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