resource

package
v0.0.0-...-0fb2adb Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadHandle = errors.New("bad handle")
)

Functions

func IsReleased

func IsReleased(h Handle) (found bool)

func Lookup

func Lookup(h Handle) (interface{}, error)

func Range

func Range(fn func(interface{}) bool)

func Release

func Release(h Handle)

func Retain

func Retain(h Handle, v interface{})

Types

type Handle

type Handle string

func NewHandle

func NewHandle() Handle

Jump to

Keyboard shortcuts

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