resource_manager

package
v0.0.0-...-4ea60fa Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBytes

func ReadBytes(filename string) ([]byte, error)

Types

type Resource

type Resource interface {
	Name() string
	Content() []byte
}

func LoadResourceFromPath

func LoadResourceFromPath(path string) (Resource, error)

type StaticResource

type StaticResource struct {
	StaticName    string
	StaticContent []byte
}

func NewStaticResource

func NewStaticResource(name string, content []byte) *StaticResource

func (*StaticResource) Content

func (r *StaticResource) Content() []byte

func (*StaticResource) Name

func (r *StaticResource) Name() string

Jump to

Keyboard shortcuts

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