go: github.com/shurcooL/go/openutil Index | Files

package openutil

import "github.com/shurcooL/go/openutil"

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


Package Files


func DisplayHTMLInBrowser Uses

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 Uses

func DisplayMarkdownInBrowser(markdown []byte)

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

Package openutil imports 7 packages (graph) and is imported by 11 packages. Updated 2018-05-11. Refresh now. Tools for package owners.