uri

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URI

type URI struct {
	Scheme string // Scheme identifies a kind of artifacts
	Opaque string // Rest of encoded data
}

URI represents the canonical identification of an artifact

func Parse

func Parse(rawURI string) (*URI, error)

Parse converts a rawURI string into an URI structure

func (URI) MarshalJSON

func (u URI) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface

func (*URI) String

func (u *URI) String() string

String implements the stringer interface

func (*URI) UnmarshalJSON

func (u *URI) UnmarshalJSON(input []byte) error

UnmarshalJSON parses URI

Jump to

Keyboard shortcuts

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