web

package
v0.0.0-...-f525512 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(p *mux.Router, prefix, basedir, listapiurl string)

Run a webserver for the giftlist using the router p. All paths must include the trailing '/'.

The webserver is added to *p* under the path *prefix*. *basedir* points to the directory containing the static and template directory. *listapiurl* is the full URL of the listapi (e.g. "http://localhost:8000/api/list/")

Types

This section is empty.

Jump to

Keyboard shortcuts

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