web

package
v0.0.0-...-de618e6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTMLTemplate = files

Functions

func NewMux

func NewMux(config *Config) (*chi.Mux, error)

Types

type Config

type Config struct {
	Dist string
}

type File

type File struct {
	Name    string
	Content []byte
}

type GeneratedFiles

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

func (*GeneratedFiles) Content

func (g *GeneratedFiles) Content(name string) ([]byte, error)

func (*GeneratedFiles) MustString

func (g *GeneratedFiles) MustString(name string) string

func (*GeneratedFiles) Pattern

func (g *GeneratedFiles) Pattern(pattern string) []*File

func (*GeneratedFiles) Reader

func (g *GeneratedFiles) Reader(name string) (io.Reader, error)

func (*GeneratedFiles) String

func (g *GeneratedFiles) String(name string) (string, error)

Jump to

Keyboard shortcuts

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