server

package
v0.0.0-...-14122a6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Tango *tango.Tango // use tango
	// contains filtered or unexported fields
}

Server is simple built-in http server

func New

func New(dstDir string, sourDir string, rootDir string, editMd bool) *Server

New returns new server set dstDir to make sure read correct static file

func (*Server) Run

func (s *Server) Run(addr string)

Run starts server

func (*Server) SetPrefix

func (s *Server) SetPrefix(prefix string)

SetPrefix sets prefix to trim url

Jump to

Keyboard shortcuts

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