Documentation ¶
Index ¶
- Variables
- func IndentLines(lines []string, char string, count int) []string
- func MarshalYAMLWithDescriptions(val interface{}) (interface{}, error)
- func MustMarshalYAML(i interface{}) []byte
- func MustParseInt(number string) int
- func ParamStyleToBraces(path string) string
- func ParamStyleToColon(path string) string
- func ToGoName(name string) (should string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableYAMLMarshalComments = false
DisableYAMLMarshalComments controls MarshalYAMLWithDescriptions
Functions ¶
func IndentLines ¶
IndentLines indents all the lines with spaces
func MarshalYAMLWithDescriptions ¶
func MarshalYAMLWithDescriptions(val interface{}) (interface{}, error)
MarshalYAMLWithDescriptions provides marshaling structs with Repose descriptions.
Make sure the value (pointer receiver is fine) you pass in doesn't implement YAML Marshaler, otherwise YAML will get into a Marshal() loop.
func MustMarshalYAML ¶
func MustMarshalYAML(i interface{}) []byte
func MustParseInt ¶
MustParseInt uses Atoi to create int from the given argument, and panics if there is an error.
func ParamStyleToBraces ¶
ParamStyleToBraces converts the params in the string from style :param to {param}
func ParamStyleToColon ¶
ParamStyleToColon converts the params in the string from style {param} to :param
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.