Documentation ¶
Index ¶
- Variables
- func ConstId(name string) string
- func FormatComments(text string) string
- func FormatNode(fset *token.FileSet, node interface{}) (string, error)
- func FuncId(name string) string
- func FuncReceiver(fn *ast.FuncDecl) string
- func MethodId(typ string, name string) string
- func TypeId(name string) string
- func VarId(name string) string
- type Context
- func (c Context) Base(p string) string
- func (c Context) Dir(p string) string
- func (c Context) FromSlash(p string) string
- func (c Context) ImportPackage(p string) (*Package, error)
- func (c Context) ImportPackageOpts(p string, opts *ImportOptions) (*Package, error)
- func (c Context) ImportPackages(dir string) ([]*Package, error)
- func (c Context) IsAbs(p string) bool
- func (c Context) IsDir(p string) bool
- func (c Context) Join(elem ...string) string
- func (c Context) OpenFile(path string) (io.ReadCloser, error)
- func (c Context) ReadDir(p string) ([]os.FileInfo, error)
- type Example
- type ImportOptions
- type Kind
- type Package
- func (p *Package) CommandName() string
- func (p *Package) Dir() string
- func (p *Package) Doc() *doc.Package
- func (p *Package) Examples() []*Example
- func (p *Package) File(name string) *ast.File
- func (p *Package) FileSet() *token.FileSet
- func (p *Package) Filenames() []string
- func (p *Package) FuncExamples(fn *doc.Func) []*Example
- func (p *Package) FuncLink(fn *ast.FuncDecl) string
- func (p *Package) Funcs() []*doc.Func
- func (p *Package) GoFilenames() []string
- func (p *Package) HTML(text string) template.HTML
- func (p *Package) HTMLDecl(node interface{}) (template.HTML, error)
- func (p *Package) HTMLDoc() template.HTML
- func (p *Package) HasDoc() bool
- func (p *Package) ImportPath() string
- func (p *Package) Imports() []string
- func (p *Package) IsEmpty() bool
- func (p *Package) IsMain() bool
- func (p *Package) IsStd() bool
- func (p *Package) LineCount() (int, error)
- func (p *Package) LinkType(x string, sel string) string
- func (p *Package) Linkify(comment string, group *ast.CommentGroup) string
- func (p *Package) Name() string
- func (p *Package) NewAST() (*token.FileSet, *ast.Package, error)
- func (p *Package) NonStdImports() []string
- func (p *Package) ReverseFilename(filename string) string
- func (p *Package) ReverseFilenameLine(filename string, line int) string
- func (p *Package) ReversePos(n ast.Node) string
- func (p *Package) ReversePosition(pos token.Position) string
- func (p *Package) ScopedHTML(text string, scope interface{}) template.HTML
- func (p *Package) Stats() (*Stats, error)
- func (p *Package) Synopsis() string
- type Stats
- type Undocumented
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FormatComments ¶
func FuncReceiver ¶
Types ¶
type Context ¶
type Context struct { build.Context Separator string App *app.App SourceHandlerName string DocHandlerName string // contains filtered or unexported fields }
func (Context) ImportPackageOpts ¶
func (c Context) ImportPackageOpts(p string, opts *ImportOptions) (*Package, error)
type Example ¶
type Example struct {
// contains filtered or unexported fields
}
func (*Example) EmptyOutput ¶
type ImportOptions ¶
type ImportOptions struct {
Shallow bool
}
type Package ¶
type Package struct { Packages []*Package // contains filtered or unexported fields }
func (*Package) CommandName ¶
func (*Package) GoFilenames ¶
func (*Package) ImportPath ¶
func (*Package) NonStdImports ¶
func (*Package) ReverseFilename ¶
func (*Package) ReverseFilenameLine ¶
func (*Package) ScopedHTML ¶
type Stats ¶
type Stats struct { Documented int ToDocument int // Indicates if the package has documentation. HasDoc bool Undocumented []*Undocumented // contains filtered or unexported fields }
func (*Stats) DocPenalty ¶
func (*Stats) DocumentedIncrease ¶
func (*Stats) DocumentedPercentage ¶
func (*Stats) NoDocPenalty ¶
type Undocumented ¶
func (*Undocumented) Id ¶
func (u *Undocumented) Id() string
func (*Undocumented) String ¶
func (u *Undocumented) String() string
Click to show internal directories.
Click to hide internal directories.