bones

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(logger log.Logger, fds *descriptorpb.FileDescriptorSet, methodDir string, force bool, targets []string, formatOpts *FormatterOptions) error

Generate writes exemplars for the methods specified by targets that match the methods in the protoSet file, or all methods if targets is an empty slice. Method exemplars are written to stdout if methodDir is empty, otherwise each method is written to a separate file in that directory. Existing files will not be overwritten unless force is true.

Types

type FormatterOptions added in v0.0.35

type FormatterOptions struct {
	Lang       Lang
	QuoteStyle QuoteStyle
	Minimal    bool
}

type Lang added in v0.0.22

type Lang int
const (
	Jsonnet Lang = iota
	JS
)

func (Lang) String added in v0.0.22

func (l Lang) String() string

func (*Lang) UnmarshalText added in v0.0.22

func (l *Lang) UnmarshalText(text []byte) error

type QuoteStyle added in v0.0.22

type QuoteStyle int
const (
	Double QuoteStyle = iota
	Single
)

func (QuoteStyle) String added in v0.0.22

func (qs QuoteStyle) String() string

func (*QuoteStyle) UnmarshalText added in v0.0.22

func (qs *QuoteStyle) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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