generate

package
v0.0.0-...-f5c2e3c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package generate parses HTML and extracts assets suitable for constructing http2preload.Manifest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchHTML

func SearchHTML(r io.Reader, abs bool) (map[string]http2preload.AssetOpt, error)

SearchHTML finds links to assets referenced in HTML read from r. Currently, only <img>, <link> and <script> tags are supported. abs argument will discard assets with absolute URLs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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