densemver

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxSemVerString describes the maximum possible semver to be represented by densemver
	MaxSemVerString = "65535.255.255"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DenSemVer

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

DenSemVer is for dense (encoded) semantic versioning

func FromInt

func FromInt(i uint32) (dsv *DenSemVer, err error)

FromInt initializes a DenSemVer instance from a DenSemVer integer representation

func FromString

func FromString(v string) (dsv *DenSemVer, err error)

FromString initializes a DenSemVer instance from a semver string

func (*DenSemVer) Int

func (v *DenSemVer) Int() (r uint32)

Int returns a integer representation of the DenSemVer instance

func (*DenSemVer) Scan

func (v *DenSemVer) Scan(src interface{}) error

Scan implements sql.Scanner

func (*DenSemVer) String

func (v *DenSemVer) String() string

String returns a string representation of the DenSemVer instance

func (*DenSemVer) UnmarshalParam

func (v *DenSemVer) UnmarshalParam(param string) error

UnmarshalParam implements echo.BindUnmarshaler

func (DenSemVer) Value

func (v DenSemVer) Value() (driver.Value, error)

Value implements driver.Valuer

Jump to

Keyboard shortcuts

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