Documentation ¶
Index ¶
- func NewPackageAST(files []string) (*ast.Package, error)
- func Write(filename string, pkgFiles map[string][]string, ...) error
- type DocCollector
- type PropertyDocs
- type PropertyStructDocs
- func (docs *PropertyStructDocs) Clone() *PropertyStructDocs
- func (docs *PropertyStructDocs) ExcludeByTag(key, value string)
- func (docs *PropertyStructDocs) GetByName(name string) *PropertyDocs
- func (docs *PropertyStructDocs) IncludeByTag(key, value string)
- func (docs *PropertyStructDocs) SetDefaults(defaults reflect.Value)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DocCollector ¶
type DocCollector struct {
// contains filtered or unexported fields
}
func NewDocCollector ¶
func NewDocCollector(pkgFiles map[string][]string) *DocCollector
func (*DocCollector) Docs ¶
func (dc *DocCollector) Docs(pkg, name string, defaults reflect.Value) (*PropertyStructDocs, error)
Return the PropertyStructDocs associated with a property struct type. The type should be in the format <package path>.<type name>
type PropertyDocs ¶
type PropertyDocs struct { Name string OtherNames []string Type string Tag reflect.StructTag Text string OtherTexts []string Properties []PropertyDocs Default string }
func (*PropertyDocs) Clone ¶
func (docs *PropertyDocs) Clone() PropertyDocs
func (*PropertyDocs) Equal ¶
func (docs *PropertyDocs) Equal(other PropertyDocs) bool
func (*PropertyDocs) Nest ¶
func (prop *PropertyDocs) Nest(nested *PropertyStructDocs)
func (*PropertyDocs) SameSubProperties ¶
func (docs *PropertyDocs) SameSubProperties(other PropertyDocs) bool
type PropertyStructDocs ¶
type PropertyStructDocs struct { Name string Text string Properties []PropertyDocs }
func (*PropertyStructDocs) Clone ¶
func (docs *PropertyStructDocs) Clone() *PropertyStructDocs
func (*PropertyStructDocs) ExcludeByTag ¶
func (docs *PropertyStructDocs) ExcludeByTag(key, value string)
func (*PropertyStructDocs) GetByName ¶
func (docs *PropertyStructDocs) GetByName(name string) *PropertyDocs
func (*PropertyStructDocs) IncludeByTag ¶
func (docs *PropertyStructDocs) IncludeByTag(key, value string)
func (*PropertyStructDocs) SetDefaults ¶
func (docs *PropertyStructDocs) SetDefaults(defaults reflect.Value)
Click to show internal directories.
Click to hide internal directories.