version

package
v0.0.0-...-3f8eaf4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version provides the version type that allows for easier checking of a data file's version

Index

Constants

View Source
const LibraryVersion = "GHC-TrueBlocks//2.5.8-release"

Variables

This section is empty.

Functions

func IsValidVersion

func IsValidVersion(test string) bool

IsValidVersion returns true if the string is a full version string

Types

type Version

type Version struct {
	Major  int64  `json:"major"`
	Minor  int64  `json:"minor"`
	Build  int64  `json:"build"`
	Aspect string `json:"aspect"`
}

func NewVersion

func NewVersion(str string) Version

func (*Version) String

func (ref *Version) String() string

String prints the version to a string

func (*Version) Uint64

func (ref *Version) Uint64() uint64

Uint64 returns version as a single uint64

Jump to

Keyboard shortcuts

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