Documentation ¶
Index ¶
- func CovertToSchemeAddress(addr net.Addr) string
- func HasElem(s interface{}, elem interface{}) bool
- func JoinPath(absolutePath, relativePath string) string
- func LastChar(str string) uint8
- func ParseSchemeAddress(addr string) net.Addr
- func Split2(s, sep string) (string, string, bool)
- func StringName(i uint32, names []IntName, goSyntaxPre string, goSyntax bool) string
- type CompareResult
- type DetailCompareResult
- type IntName
- type SemanticVersion
- func (semVer *SemanticVersion) Compare(other *SemanticVersion) CompareResult
- func (semVer *SemanticVersion) Compatible(other *SemanticVersion) bool
- func (semVer *SemanticVersion) DetailCompare(other *SemanticVersion) DetailCompareResult
- func (ver SemanticVersion) MarshalJSON() ([]byte, error)
- func (ver *SemanticVersion) Scan(value interface{}) (err error)
- func (semVer *SemanticVersion) String() string
- func (ver *SemanticVersion) UnmarshalJSON(b []byte) error
- func (ver SemanticVersion) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CovertToSchemeAddress ¶
func ParseSchemeAddress ¶
Types ¶
type DetailCompareResult ¶
type DetailCompareResult int32
const ( NoDifferent = 0 MajorLT DetailCompareResult = 1 << iota MajorGT MinorLT MinorGT PatchLT PatchGT PreReleaseLT PreReleaseGT BuildLT BuildGT )
type SemanticVersion ¶
type SemanticVersion struct { Major uint32 Minor uint32 Patch uint32 PreRelease []string Build []string // contains filtered or unexported fields }
func NewSemVerFromString ¶
func NewSemVerFromString(ver string) (semVer *SemanticVersion, err error)
func SemanticVersionMust ¶
func SemanticVersionMust(semVer *SemanticVersion, err error) *SemanticVersion
func (*SemanticVersion) Compare ¶
func (semVer *SemanticVersion) Compare(other *SemanticVersion) CompareResult
func (*SemanticVersion) Compatible ¶
func (semVer *SemanticVersion) Compatible(other *SemanticVersion) bool
func (*SemanticVersion) DetailCompare ¶
func (semVer *SemanticVersion) DetailCompare(other *SemanticVersion) DetailCompareResult
func (SemanticVersion) MarshalJSON ¶
func (ver SemanticVersion) MarshalJSON() ([]byte, error)
func (*SemanticVersion) Scan ¶
func (ver *SemanticVersion) Scan(value interface{}) (err error)
func (*SemanticVersion) String ¶
func (semVer *SemanticVersion) String() string
func (*SemanticVersion) UnmarshalJSON ¶
func (ver *SemanticVersion) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.