Documentation
¶
Index ¶
- Constants
- func Fs() http.FileSystem
- func IsUrl(url string) bool
- func Path(url string) string
- type Resource
- func (me Resource) CopyToDir(afs afero.Fs, targetDir string)
- func (me Resource) CopyToFile(afs afero.Fs, targetFile string)
- func (me Resource) Open() http.File
- func (me Resource) Path() string
- func (me Resource) ReadBytes() []byte
- func (me Resource) ReadText() string
- func (me Resource) RenderWithTemplate(w io.Writer, data map[string]any)
- func (me Resource) Url() string
- type ResourceT
Constants ¶
View Source
const UrlPrefix = "res:"
Variables ¶
This section is empty.
Functions ¶
func Fs ¶
func Fs() http.FileSystem
Types ¶
Click to show internal directories.
Click to hide internal directories.