scope

package
v0.0.0-...-93e21f3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasRegexp = regexp.MustCompile(`.*\b([a-z0-9-._]+)$`)

Functions

func ComputeAliases

func ComputeAliases(scope []string) map[string]string

func Context

func Context(ctx context.Context, scope []string) context.Context

func ContextContains

func ContextContains(ctx context.Context, scope string) bool

func IsValid

func IsValid(s string) bool

func MatchAlias

func MatchAlias(s string) string

func Names

func Names() []string

func Register

func Register(name string)

func Resolve

func Resolve(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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