loc

package
v0.0.0-...-21311fb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locator

type Locator struct {
	Repository string `json:"repository"`
	Name       string `json:"name"`
	Version    string `json:"version"`
}

Locator defines a package identificator. Locator consists of a repository name, package name and a version (in SemVer format)

func MustParseLocator

func MustParseLocator(locatorS string) Locator

func NewLocator

func NewLocator(repository, name, version string) *Locator

func ParseLocator

func ParseLocator(locatorS string) (*Locator, error)

func (Locator) MarshalText

func (r Locator) MarshalText() ([]byte, error)

func (Locator) String

func (r Locator) String() string

func (*Locator) UnmarshalText

func (r *Locator) UnmarshalText(p []byte) error

Jump to

Keyboard shortcuts

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