Package estree provides an Abstract Syntax Tree for working with Javascript code, based on the ESTree specification (https://github.com/estree/estree). ESTree allows interoperability between software which parses, manipulates, and/or executes Javascript code. Examples include transpilers, minifiers, and front-end frameworks. AST nodes all implement the Node interface, which should be your starting point if you're looking for documentation. Right now, just ES5. ES6 on up is coming soon. See https://github.com/estree/estree/issues/201. In short, there isn't a standard way to represent comments, so I haven't (yet) done so.
Package csminify provides functions for parsing CS:GO demos and minifying them into various formats.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package diskcache provides a http.RoundTripper implementation that can minify, compress, and cache HTTP responses retrieved using a standard http.Client on disk. Provides ability to define custom retention and storage policies depending on the host, path, or other URL components. Package diskcache does not aim to work as a on-disk HTTP proxy -- see github.com/gregjones/httpcache for a HTTP transport (http.RoundTripper) implementation that provides a RFC 7234 compliant cache. See _example/example.go for a more complete example. Example demonstrates setting up a simple diskcache for use with a http.Client.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package htmlmin minifies HTML.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package minify relates MIME type to minifiers. Several minifiers are provided in the subpackages.
Package cssfs implements a handler which serves HTTP request to a CSS file with a minified version (i.e. unnecessary whitespace removed) of that file. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of the GNU General Public License along with this program. If not, see the [GNU General Public License](http://www.gnu.org/licenses/gpl.html) for details.
Package asset helps using static assets (scripts, stylesheets, other files) prepared by external asset pipelines in Go (Golang) templates. It provides template functions that insert references to (optionally) minified and versioned files. The idea behind this package is that in some cases creating asset bundles is best left to external tools such as grunt or gulp. The default configuration relies on a presence of a JSON file describing a mapping from original to minified assets. Such file can be prepared e.g. by gulp-rev. Example manifest file: Example usage in template: Example initialization: