resource

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Properties []ResourceProps

Functions

func Prepare

func Prepare(f fs.FS, file string)

Types

type Resource

type Resource uint8

func ResourceID

func ResourceID(name string) (Resource, bool)

func ToResource added in v0.2.0

func ToResource(r string) Resource

type ResourceProps

type ResourceProps struct {
	Name  string `json:"name"`
	Short string `json:"short"`
}

type Resources added in v0.2.0

type Resources uint32

func ToResources added in v0.2.0

func ToResources(res ...string) Resources

func (Resources) Contains added in v0.2.0

func (d Resources) Contains(dir Resource) bool

Contains checks whether all the argument's bits are contained in this mask.

func (*Resources) Set added in v0.2.0

func (d *Resources) Set(dir Resource)

func (*Resources) Unset added in v0.2.0

func (d *Resources) Unset(dir Resource)

Jump to

Keyboard shortcuts

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