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 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
Click to show internal directories.
Click to hide internal directories.