urls

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitURLs

func InitURLs()

func NewTemplate

func NewTemplate(targetName string, fs fs.FS, patterns ...string) *htmlTemplate

func ParseFiles added in v0.0.1

func ParseFiles(targetName string, filepath ...string) *htmlTemplate

func ShowAllURL

func ShowAllURL()

Types

type Context

type Context = map[string]interface{} // alias
var (
	BaseContext Context
)

type FileInfo added in v0.0.1

type FileInfo struct {
	Name    string    // base name of the file
	Size    int64     // length in bytes for regular files; system-dependent for others
	ModTime time.Time // modification time
	IsDir   bool      // abbreviation for Mode().IsDir()
	Path    string    // absolute path
}

type Setting

type Setting struct {
	EnableBootstrap   bool
	EnableFontawesome bool
	EnableJquery      bool
	ShowFooter        bool
}
var (
	SiteSetting Setting
)

type SingleFS

type SingleFS struct {
	embed.FS
	// contains filtered or unexported fields
}

func (SingleFS) Open

func (sfs SingleFS) Open(string) (fs.File, error)

type StaticFS

type StaticFS struct {
	embed.FS
}

func (StaticFS) Open

func (sfs StaticFS) Open(path string) (fs.File, error)

Jump to

Keyboard shortcuts

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