package
1.3.4
Repository: https://github.com/getdatcrypto/nimbus.git
Documentation: pkg.go.dev

# Functions

ComposeErrors will take multiple errors and compose them into a single errors with a longer message.
CopyDir copies a directory and all of its contents to the destination directory.
CopyFile copies a file from a source to a destination.
Critical should be called if a sanity check has failed, indicating developer error.
ExtendErr will return a new error which extends the input error with a string.
ExtractTarGz extracts the specified .tar.gz file to dir, overwriting existing files in the event of a name conflict.
IsVersion returns whether str is a valid version number.
JoinErrors concatenates the elements of errs to create a single error.
Retry will call 'fn' 'tries' times, waiting 'durationBetweenAttempts' between each attempt, returning 'nil' the first time that 'fn' returns nil.
Select returns the field of v that corresponds to the current Release.
Severe will print a message to os.Stderr.
TempDir joins the provided directories and prefixes them with the Sia testing directory.
VersionCmp returns an int indicating the difference between a and b.

# Constants

DEBUG set to false turns the debugging off.
MaxEncodedVersionLength is the maximum length of a version string encoded with the encode package.
Release refers to the standard release mode.
Version is the current version of siad.
VLONG disables a set of test cases that take a very long time to run.

# Variables

BuildTime is the date and time the build was completed.
GitRevision is the git commit hash used when built.
SiaTestingDir is the directory that contains all of the files and folders created during testing.

# Structs

A Var represents a variable whose value depends on which Release is being compiled.