key

package
v0.4.30 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package key provides the key implementation of the document.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidKey is returned when the key is invalid.
	ErrInvalidKey = errors.New("invalid key, key must be a slug with 4-120 characters")
)

Functions

This section is empty.

Types

type Key

type Key string

Key represents a document key.

func (Key) String added in v0.2.4

func (k Key) String() string

String returns the string representation of the key.

func (Key) Validate added in v0.3.1

func (k Key) Validate() error

Validate checks whether the key is valid or not.

Jump to

Keyboard shortcuts

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