docmaster

package
v0.0.0-...-c286765 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTemplates

func RenderTemplates(options *Options, data *protoc.Result) ([]*plugin_go.CodeGeneratorResponse_File, error)

RenderTemplates ...

Types

type Format

type Format int

Format to render

const (
	NoFormat Format = 0
	Markdown Format = 1
	HTML     Format = 2
)

Format values

type Options

type Options struct {
	Format       Format
	OutputFile   string
	TemplateFile string
}

Options ...

func ParseOptions

func ParseOptions(req *plugin_go.CodeGeneratorRequest) (*Options, error)

ParseOptions ... example: format=template,template=index.txt,file=docs.html

type Plugin

type Plugin struct {
}

Plugin defines a protoc plugin

func NewPlugin

func NewPlugin() *Plugin

NewPlugin ...

func (*Plugin) Generate

Generate ...

Jump to

Keyboard shortcuts

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