minify

package
v0.0.0-...-050f34d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Minify

func Minify(mediatype string, dest io.Writer) io.WriteCloser

Minifiy returns a minifier that writes minification to dest. If minification is disabled, or no minifier for the given mediatype type exists, it returns a no-op wrapper around src.

The caller must close the returned closer upon completion of writing.

func MinifyBytes

func MinifyBytes(mediatype string, in []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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