mdopen: Index | Files | Directories

package mdopen

import ""


Package Files


type Opener Uses

type Opener struct {
    // contains filtered or unexported fields

Opener holds layout and command name to open default browser. Use New function to initialize corrent one.

func New Uses

func New(options ...Option) *Opener

New returns initialized Opener.

func (*Opener) Open Uses

func (opnr *Opener) Open(f io.Reader) error

Open will create a tmp file, execute layout template with given markdown into it and then open it in browser.

type Option Uses

type Option func(*Opener)

Option for initializer.

func GithubTemplate Uses

func GithubTemplate() Option

GithubTemplate option sets layout as template.



Package mdopen imports 11 packages (graph) and is imported by 1 packages. Updated 2018-10-04. Refresh now. Tools for package owners.