handle

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Invalid = Handle("")

Variables

This section is empty.

Functions

func Has

func Has(v interface{}) bool

func Set

func Set(v interface{}, h string)

if "" => type: if id => type:id if type:id => type:id

Types

type Handle

type Handle string

func Get

func Get(v interface{}) (handle Handle)

func New

func New(typ, id string) Handle

func NewFor

func NewFor(v interface{}) Handle

func (Handle) Handle

func (h Handle) Handle() string

func (Handle) ID

func (h Handle) ID() string

func (Handle) IsZero

func (h Handle) IsZero() bool

func (Handle) Type

func (h Handle) Type() string

type Resourcer

type Resourcer interface {
	Resource() interface{}
}

Jump to

Keyboard shortcuts

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