package
2.9.32
Repository: https://github.com/lpha/minify.git
Documentation: pkg.go.dev

# Functions

Minify minifies HTML data, it reads from r and writes to w.
NewTokenBuffer returns a new TokenBuffer.
ToHash returns the hash whose name is s.

# Constants

a.
abbr.
about.
accept.
accept-charset.
action.
address.
align.
alink.
allowfullscreen.
amp-boilerplate.
area.
Article
article.
aside.
async.
audio.
autofocus.
autoplay.
axis.
b.
background.
base.
bb.
bdi.
bdo.
bgcolor.
blockquote.
body.
br.
button.
canvas.
caption.
charset.
checked.
cite.
class.
classid.
clear.
code.
codebase.
codetype.
col.
colgroup.
color.
cols.
colspan.
compact.
content.
controls.
data.
datalist.
datatype.
dd.
declare.
default.
defaultChecked.
defaultMuted.
defaultSelected.
defer.
del.
details.
dfn.
dialog.
dir.
disabled.
div.
dl.
dt.
em.
embed.
enabled.
enctype.
face.
fieldset.
figcaption.
figure.
footer.
for.
form.
formaction.
formnovalidate.
frame.
frameborder.
h1.
h2.
h3.
h4.
h5.
h6.
head.
header.
hgroup.
hidden.
hr.
href.
hreflang.
html.
http-equiv.
i.
icon.
id.
iframe.
img.
inert.
inlist.
input.
ins.
ismap.
itemscope.
kbd.
keygen.
label.
lang.
language.
legend.
li.
link.
longdesc.
main.
manifest.
map.
mark.
math.
max.
maxlength.
media.
menu.
meta.
meter.
method.
multiple.
muted.
name.
nav.
nohref.
noresize.
noscript.
noshade.
novalidate.
nowrap.
object.
ol.
open.
optgroup.
option.
output.
p.
param.
pauseonexit.
picture.
plaintext.
poster.
pre.
prefix.
profile.
progress.
property.
q.
rb.
readonly.
rel.
required.
resource.
rev.
reversed.
rows.
rowspan.
rp.
rt.
rtc.
ruby.
rules.
s.
samp.
scope.
scoped.
script.
scrolling.
seamless.
section.
select.
selected.
shape.
size.
slot.
small.
sortable.
source.
span.
src.
srcset.
start.
strong.
style.
sub.
summary.
sup.
svg.
tabindex.
table.
target.
tbody.
td.
template.
text.
textarea.
tfoot.
th.
thead.
time.
title.
tr.
track.
translate.
truespeed.
type.
typemustmatch.
typeof.
u.
ul.
undeterminate.
usemap.
valign.
value.
valuetype.
var.
video.
visible.
vlink.
vocab.
wbr.
xmlns.
xmp.

# Variables

DefaultMinifier is the default minifier.
EntitiesMap are all named character entities.
TextRevEntitiesMap is a map of escapes.

# Structs

Minifier is an HTML minifier.
Token is a single token unit with an attribute value (if given) and hash of the data.
TokenBuffer is a buffer that allows for token look-ahead.

# Type aliases

Hash defines perfect hashes for a predefined list of strings.