tfs

package
v0.0.0-...-c25bc78 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EFS

func EFS() embed.FS

func SetEFS

func SetEFS(fs embed.FS)

func SetIns

func SetIns(ins FS)

Types

type FS

type FS interface {
	ReadFile(name string) ([]byte, error)
	ParseTpl(name string, data interface{}) ([]byte, error)
}
var Ins FS = NewEmbedFS()

func NewEmbedFS

func NewEmbedFS() FS

func NewOSFS

func NewOSFS(dir string) FS

Jump to

Keyboard shortcuts

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