core

package
v0.0.0-...-418b553 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const GITHUBAPIURL string = "https://api.github.com/markdown/raw"

GITHUBAPIURL link to api to access github/markdown

View Source
const NOTFOUNDPAGE = `<h1>NOT FOUND PAGE</h1>`
View Source
const TEMPLATE = `` /* 3727-byte string literal not displayed */

TEMPLATE for the front-end.

Variables

This section is empty.

Functions

func IsFile

func IsFile(path string) (bool, error)

func MarkdowntoHTML

func MarkdowntoHTML(data, token string) string

MarkdowntoHTML convert given markdown data to html.

func SaveFileHTML

func SaveFileHTML(path string, output string, token string)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServ

func NewServ(port, dirpath, token string, watch bool) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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