html

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package html is the package for load html

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFileBinary is returned when the html file is binary
	ErrFileBinary = errors.New("File is binary")
)

Functions

This section is empty.

Types

type HTML

type HTML struct {
	ContentKey string
}

HTML is struct of HTML Loader

func New

func New(countentKey string) *HTML

New returns new instance of HTML

func (*HTML) Ext

func (_ *HTML) Ext() string

Ext implements gen.Loader

func (*HTML) Load

func (h *HTML) Load(p []byte) (gen.Variables, error)

Load implements gen.Loader

Jump to

Keyboard shortcuts

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