res

package
v0.0.0-...-28dbc4a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const UrlPrefix = "res:"

Variables

This section is empty.

Functions

func Fs

func Fs() http.FileSystem

func IsResourceUrl

func IsResourceUrl(url string) bool

func ReadDefaultConfigYaml

func ReadDefaultConfigYaml() string

func ResourcePath

func ResourcePath(url string) string

Types

type Resource

type Resource = *ResourceT

func NewResourceWithPath

func NewResourceWithPath(path string) Resource

func NewResourceWithUrl

func NewResourceWithUrl(url string) Resource

func (Resource) CopyToFile

func (me Resource) CopyToFile(targetDir string)

func (Resource) Open

func (me Resource) Open() http.File

func (Resource) Path

func (me Resource) Path() string

func (Resource) ReadBytes

func (me Resource) ReadBytes() []byte

func (Resource) ReadString

func (me Resource) ReadString() string

func (Resource) Url

func (me Resource) Url() string

type ResourceT

type ResourceT struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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