type Pair …
type KubeTypes …
func astFrom(filePath string) *doc.Package { … }
func fmtRawDoc(rawDoc string) string { … }
func fieldName(field *ast.Field) string { … }
type bufferedLine …
type buffer …
func newBuffer() *buffer { … }
func (b *buffer) addLine(line string, indent int) { … }
func (b *buffer) flushLines(w io.Writer) error { … }
func writeFuncHeader(b *buffer, structName string, indent int) { … }
func writeFuncFooter(b *buffer, structName string, indent int) { … }
func writeMapBody(b *buffer, kubeType []Pair, indent int) { … }
func ParseDocumentationFrom(src string) []KubeTypes { … }
func WriteSwaggerDocFunc(kubeTypes []KubeTypes, w io.Writer) error { … }
func VerifySwaggerDocsExist(kubeTypes []KubeTypes, w io.Writer) (int, error) { … }