Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffHTML

func DiffHTML(oldHTML, newHTML []byte) []byte

DiffHTML returns newHTML with the passages that differ from oldHTML wrapped in <ins>/<del>. Equal and inserted tokens concatenate back to newHTML exactly, so the document structure is always that of the new version; deletions only ever inject text.

func Open

func Open(url string) error

Types

type Parser

type Parser struct{}

func NewParser

func NewParser() *Parser

func (Parser) MdToHTML

func (m Parser) MdToHTML(input []byte) ([]byte, error)

type Server

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

func NewServer

func NewServer(host string, port int, boundingBox bool, browser bool, enableReload bool, parser *Parser) *Server

func (*Server) Serve

func (s *Server) Serve(file string) error

Jump to

Keyboard shortcuts

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