utils

package
v0.0.0-...-8e1dd2c Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PACKAGE_STR_REGEX = regexp.MustCompile(`^(?P<name>.+)@(?P<major>\d+)\.(?P<feature>\d+)\.(?P<minor>\d+)$`)

Functions

func CrateCell

func CrateCell(content string, color tcell.Color) *tview.TableCell

func CrateNormalCell

func CrateNormalCell(content string) *tview.TableCell

Types

type Package

type Package struct {
	Name                                       string
	MajorVersion, FeatureVersion, MinorVersion uint64
}

func ParsePackage

func ParsePackage(packageStr string) (pkg Package, err error)

func (*Package) GetVersion

func (pkg *Package) GetVersion() string

func (*Package) VersionRankComparedTo

func (pkg *Package) VersionRankComparedTo(pkgReq *Package) int

type RepoWithPackagesFound

type RepoWithPackagesFound struct {
	Repository
	Packages []Package
}

type Repository

type Repository struct {
	Name, Url string
}

Jump to

Keyboard shortcuts

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