Documentation ¶
Overview ¶
Package proto provides a filler implementation for Protocol Buffers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InteractiveFiller ¶
type InteractiveFiller struct {
// contains filtered or unexported fields
}
InteractiveFiller is an implementation of fill.InteractiveFiller. It let you input request fields interactively.
func NewInteractiveFiller ¶
func NewInteractiveFiller(prompt prompt.Prompt, prefixFormat string) *InteractiveFiller
NewInteractiveFiller instantiates a new filler that fills each field interactively.
func (*InteractiveFiller) Fill ¶
func (f *InteractiveFiller) Fill(v interface{}, opts fill.InteractiveFillerOpts) error
Fill receives v that is an instance of *dynamic.Message. Fill let you input each field interactively by using a prompt. v will be set field values inputted by a prompt.
Note that Fill resets the previous state when it is called again.
Click to show internal directories.
Click to hide internal directories.