Back to

Package server

Latest Go to latest

The latest major version is .

Published: Sep 1, 2020 | License: MIT | Module:



var (
	UseTLS         bool
	EnableMarkdown bool
	Port           int
	Host           string
	Static         string
	Cert           string
	Key            string
	Exclude        []string

func CommandUp

func CommandUp(cmd *cobra.Command, args []string)

type Engine

type Engine struct {
	// contains filtered or unexported fields

func NewEngine

func NewEngine() *Engine

func (*Engine) Listen

func (e *Engine) Listen(addr string)

func (*Engine) ListenTLS

func (e *Engine) ListenTLS(addr, cert, key string)

func (*Engine) Serve

func (e *Engine) Serve(source ...string) *Engine

Serve generate url for given files or directories

func (*Engine) ServeDirs

func (e *Engine) ServeDirs() *Engine

func (*Engine) ServeFiles

func (e *Engine) ServeFiles() *Engine

type H

type H map[string]interface{}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier