Documentation
¶
Index ¶
- func StringifyItem(item debug.Item) string
- func StringifyItem2(item debug.Item, valueStrLen int) string
- func StringifyItemFull(item debug.Item) string
- type AnnSetDebugOpt
- type AnnotationOpt
- type AnnotationType
- type Annotator
- type AnnotatorSet
- type Cmd
- type CommentWithNode
- type Ctx
- type DebugExpr
- type FilesToAnnotate
- type Flags
- type ItemStringifier
- type StmtsIter
- type TType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringifyItem ¶
func StringifyItemFull ¶
Types ¶
type AnnSetDebugOpt ¶ added in v1.3.7
type AnnotationOpt ¶ added in v1.1.0
type AnnotationType ¶
type AnnotationType int
const ( // Order matters, last is the bigger set AnnotationTypeNone AnnotationType = iota AnnotationTypeOff AnnotationTypeBlock AnnotationTypeFile AnnotationTypeImport // annotates set of files (importspec) AnnotationTypePackage // annotates set of files AnnotationTypeModule // annotates set of packages )
func AnnotationTypeInString ¶ added in v1.1.0
func AnnotationTypeInString(s string) (AnnotationType, string, error)
type Annotator ¶
type Annotator struct {
// contains filtered or unexported fields
}
func NewAnnotator ¶
func (*Annotator) AnnotateAstFile ¶
type AnnotatorSet ¶
type AnnotatorSet struct {
// contains filtered or unexported fields
}
func NewAnnotatorSet ¶
func NewAnnotatorSet(fset *token.FileSet) *AnnotatorSet
func (*AnnotatorSet) AnnotateAstFile ¶
type Cmd ¶
type Cmd struct { Dir string // running directory CmdLineMode bool Testing bool // not the same as flags.mode.test Stdin io.Reader Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
func (*Cmd) ParseFlagsOnce ¶ added in v1.3.8
allow direct external access to this feature (ex: godebug -h)
type CommentWithNode ¶ added in v1.3.3
type FilesToAnnotate ¶ added in v1.3.3
type FilesToAnnotate struct {
// contains filtered or unexported fields
}
func NewFilesToAnnotate ¶ added in v1.3.3
func NewFilesToAnnotate(cmd *Cmd) *FilesToAnnotate
type ItemStringifier ¶
type ItemStringifier struct {
// contains filtered or unexported fields
}
func NewItemStringifier ¶ added in v1.3.3
func NewItemStringifier() *ItemStringifier
Source Files
¶
Click to show internal directories.
Click to hide internal directories.