key

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 13

Documentation

Index

Constants

View Source
const MinecraftNamespace string = "minecraft"

Variables

This section is empty.

Functions

func NamespaceValid

func NamespaceValid(namespace string) bool

func ValueValid

func ValueValid(value string) bool

Types

type Key

type Key interface {
	Namespace() string
	Value() string
	fmt.Stringer
}

func Make

func Make(namespace, value string) (k Key, err error)

Make returns a new Key where namespace and value was validated.

func New

func New(namespace, value string) Key

func Parse

func Parse(key string) (Key, error)

func ParseValid

func ParseValid(key string) (Key, error)

Jump to

Keyboard shortcuts

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