openutil

package
v0.0.0-...-5fe729b Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 13

Documentation

Overview

Package openutil displays Markdown or HTML in a new browser tab.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayHTMLInBrowser

func DisplayHTMLInBrowser(mux *http.ServeMux, stopServerChan <-chan struct{}, query string)

DisplayHTMLInBrowser displays the /index HTML page of given mux in a new browser window/tab. query can be empty, otherwise it should begin with "?", like "?key=value".

func DisplayMarkdownInBrowser

func DisplayMarkdownInBrowser(markdown []byte)

DisplayMarkdownInBrowser displays given Markdown in a new browser window/tab.

Types

This section is empty.

Jump to

Keyboard shortcuts

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