Documentation
¶
Overview ¶
Package weblibs gives a convenient way to serve common JS frameworks.
Index ¶
Constants ¶
View Source
const ( JQUERY_VERSION = "1.8.3" JQUERY_URL = "http://code.jquery.com/jquery-" + JQUERY_VERSION + ".min.js" BOOTSTRAP_URL = "https://github.com/twbs/bootstrap/releases/download/v3.0.0/bootstrap-3.0.0-dist.zip" )
Variables ¶
This section is empty.
Functions ¶
func HandleBootstrap ¶
func HandleJquery ¶
func RegisterAll ¶
RegisterAll registers: - jquery at /libs/jquery.min.js - bootstrap at /libs/bootstrap/{css,js,img}
Types ¶
type ContentHandler ¶
type ContentHandler []byte
func (ContentHandler) ServeHTTP ¶
func (c ContentHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.