Skip to content

An HTML minimizer written in pure Go for use in webserver applications, which by the way, Go is amazing at.

Notifications You must be signed in to change notification settings

whyrusleeping/TinyHtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

#TinyHtml

A small html minimizer for use in web servers. Generally reduces size of code around 10-15%

Usage:

file,_ := os.Open("Somefile.html")
minHtml := tinyhtml.New(file)

//Assuming you are using it in a http request handler
http.ServeContent(w,r,"My Page", time.Now(), minHtml)

The Minimizer class is a wrapper over any io.Reader interface that also implements the io.Reader interface.

About

An HTML minimizer written in pure Go for use in webserver applications, which by the way, Go is amazing at.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages