astutils

package
Version: v0.0.0-...-f290db4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackageDoc

func PackageDoc(pkgPath string, files []*ast.File, fset *token.FileSet) *doc.Package

func SortCommentsByPos

func SortCommentsByPos(comments []*ast.CommentGroup) []*ast.CommentGroup

SortCommentsByPos takes a slice of comment groups and sorts it by Pos. All comment groups must be from the same file.

func SortObjectsByPos

func SortObjectsByPos(objectsMap map[string]*ast.Object) []*ast.Object

SortObjectsByPos takes a map of ast objects and sorts it by Pos to a slice. All objects must be from the same file.

func TypeDoc

func TypeDoc(pkgDoc *doc.Package, typeName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL