build

package
v0.4.8-beta Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: MIT Imports: 4 Imported by: 454

Documentation

Index

Constants

View Source
const DEBUG = false
View Source
const Release = "standard"
View Source
const Version = "0.4.7"

Version is the current version of siad.

Variables

View Source
var (
	SiaTestingDir = filepath.Join(os.TempDir(), "SiaTesting")
)

Functions

func IsVersion added in v1.0.0

func IsVersion(str string) bool

IsVersion returns whether str is a valid version number.

func TempDir added in v0.3.2

func TempDir(dirs ...string) string

TempDir joins the provided directories and prefixes them with the Sia testing directory.

func VersionCmp added in v1.0.0

func VersionCmp(a, b string) int

VersionCmp returns an int indicating the difference between a and b. It follows the convention of bytes.Compare and big.Cmp:

-1 if a <  b
 0 if a == b
+1 if a >  b

One important quirk is that "1.1.0" is considered newer than "1.1", despite being numerically equal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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