assests

package
v0.0.0-...-01409ac Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DirectoryCSS []byte
View Source
var Template = template.Must(
	template.New("").Funcs(sprig.FuncMap()).ParseFS(TemplateFS, "templates/*"),
)
View Source
var TemplateFS embed.FS

Functions

func RenderDirectory

func RenderDirectory(out io.Writer, bucket, prefix string, entries []*DirectoryEntry) error

Types

type DirectoryEntry

type DirectoryEntry struct {
	Name      string
	Href      string
	IsDir     bool
	ClassName string
}

Jump to

Keyboard shortcuts

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