specurl

package
v0.0.0-...-c1a9e9f Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRef

func BuildRef(parts ...string) string

Types

type URL

type URL struct {
	SpecID  string   // URL to the spec file (schema, domain, path)
	Pointer []string // URL fragment segments (escaped)
	// contains filtered or unexported fields
}

func Parse

func Parse(ref string) *URL

func (URL) IsExternal

func (r URL) IsExternal() bool

func (URL) IsRemote

func (r URL) IsRemote() bool

func (URL) MatchPointer

func (r URL) MatchPointer(unescapedPath []string) bool

func (URL) String

func (r URL) String() (s string)

Jump to

Keyboard shortcuts

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