Documentation ¶
Index ¶
- type Converter
- func (c *Converter) ConvertToYAML() (string, error)
- func (c *Converter) GetYAMLComment(comment *proto.Comment, indentLvl int) string
- func (c Converter) GetYAMLMapField(field *proto.MapField) string
- func (c Converter) GetYAMLNormalField(field *proto.NormalField) string
- func (c *Converter) GetYAMLPreamble() string
- func (c *Converter) GetYAMLTypeFromMessage(message *proto.Message) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
func (*Converter) ConvertToYAML ¶
ConvertToYAML converts the Source proto file to YAML format and returns it as a string
func (*Converter) GetYAMLComment ¶
GetYAMLComment returns a properly formatted YAML comment for the given proto comment (or an empty string if the comment is nil)
func (Converter) GetYAMLMapField ¶
GetYAMLMapField returns a YAML formatted field for a given 'normal' field
func (Converter) GetYAMLNormalField ¶
func (c Converter) GetYAMLNormalField(field *proto.NormalField) string
GetYAMLNormalField returns a YAML formatted field for a given 'normal' field
func (*Converter) GetYAMLPreamble ¶
GetYAMLPreamble emits the OpenAPI YAML schema preamble
Click to show internal directories.
Click to hide internal directories.