files

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

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

func NewHTML

func NewHTML(sourceFile string) *HTML

func (*HTML) InjectJS

func (h *HTML) InjectJS(script *JS) *HTML

func (*HTML) Render

func (h *HTML) Render(destinationFile string, releaseBuild bool) error

type JS

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

func NewJS

func NewJS(destination, scriptFile string, content []byte) *JS

func (*JS) GetScriptSource

func (j *JS) GetScriptSource(releaseBuild bool) (string, error)

Jump to

Keyboard shortcuts

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