compressor

package
v0.0.0-...-98ce64d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merger

func Merger(dist string, srcs ...string) error

Merger func is the joining together of some files so that they become one.

func Minify

func Minify(mt MediaType, w io.Writer, r io.Reader) error

Minify is compress file func

Types

type MediaType

type MediaType string

MediaType may take the form of 'text/plain', 'text/*', '*/*' or 'text/plain; charset=UTF-8; version=2.0'.

const (
	// MediaTypeTextCSS is text/css media
	MediaTypeTextCSS MediaType = "text/css"
	// MediaTypeTextHTML  is text/html media
	MediaTypeTextHTML MediaType = "text/html"
	// MediaTypeTextJavaScript is text/javascript media
	MediaTypeTextJavaScript MediaType = "text/javascript"
	// MediaTypeimageSvgXML is image/svg+xml media
	MediaTypeimageSvgXML MediaType = "image/svg+xml"
)

Jump to

Keyboard shortcuts

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