mdopen: github.com/romanyx/mdopen Index | Files | Directories

package mdopen

import "github.com/romanyx/mdopen"

Index

Package Files

mdopen.go

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 github.com template.

Directories

PathSynopsis
internal/templates/github

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