server

package
v0.0.0-...-a2d53f5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 17 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 {
	// contains filtered or unexported fields
}

Server serves a HTML rendered Markdown preview of a Markdown file specified at path. Whenever the path is written to, the rendering will update dynamically.

func New

func New(ctx context.Context, path string, log *logrus.Logger) (*Server, error)

New creates a new Server given some markdown path.

func (*Server) Run

func (s *Server) Run() (http.Handler, error)

Run returns handlers to run the server.

Jump to

Keyboard shortcuts

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