location

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownFlag = errors.New("unknown flag")

Functions

This section is empty.

Types

type Flags

type Flags uint32
const (
	FLAG_LOCALFS Flags = 1 << 0
	FLAG_FILE    Flags = 1 << 1
)

func ParseFlag

func ParseFlag(name string) (Flags, error)

type Location

type Location[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](fallback string) *Location[T]

func (*Location[T]) Lookup

func (l *Location[T]) Lookup(uri string) (proto, location string, item T, flags Flags, ok bool)

func (*Location[T]) Names

func (l *Location[T]) Names() []string

func (*Location[T]) Register

func (l *Location[T]) Register(name string, item T, flags Flags) bool

func (*Location[T]) Unregister

func (l *Location[T]) Unregister(name string) bool

Jump to

Keyboard shortcuts

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