weblibs

package
v0.0.0-...-2d6ac65 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: BSD-3-Clause Imports: 6 Imported by: 4

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 HandleBootstrap() (http.Handler, error)

func HandleJquery

func HandleJquery() (http.Handler, error)

func RegisterAll

func RegisterAll(mux *http.ServeMux) error

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)

Jump to

Keyboard shortcuts

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