Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Number data type Number = "NUMBER" // Datetime data type Datetime = "DATETIME" )
Variables ¶
View Source
var ErrEmptyVersion = errors.New("version cannot be empty")
View Source
var ErrInvalidMetadata = errors.New("invalid metadata when parsing semver")
View Source
var ErrInvalidPrerelease = errors.New("invalid prerelease when parsing semver")
View Source
var ErrUnableToConvertSemver = errors.New("unable to convert to semver, incorrect format")
Functions ¶
func TsFromJava ¶
TsFromJava converts a java timestamp to standard unix format
func ZeroSecondsTS ¶
ZeroSecondsTS Takes a timestamp in milliseconds as a parameter and returns another timestamp in seconds with the same date & time but zero seconds.
func ZeroTimeTS ¶
ZeroTimeTS Takes a timestamp in milliseconds as a parameter and returns another timestamp in seconds with the same date and zero time.
Types ¶
type Semver ¶
type Semver struct {
// contains filtered or unexported fields
}
func BuildSemver ¶
BuildSemver builds a semver object from a version string
type UnsupportedMatcherError ¶
type UnsupportedMatcherError struct {
Message string
}
UnsupportedMatcherError represents a flag set validaton error
func (UnsupportedMatcherError) Error ¶
func (f UnsupportedMatcherError) Error() string
Error implements golang error interface
Click to show internal directories.
Click to hide internal directories.