package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: May 4, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
AST Structure
AST Objects have the following structure.
ast.File
ast.GenDecl
ast.CommentGroup
ast.TypeSpec
ast.Ident (the struct)
ast.StructType
ast.FieldList
ast.Field
(Primitive)
ast.CommentGroup
[]ast.Ident
ast.Ident
ast.Object (nil)
ast.Ident (Name e.g. int)
ast.Field
(Obj)
ast.CommentGroup
[]ast.Ident
ast.Ident
ast.Object (Name)
ast.Ident
ast.Object
ast.TypeSpec
ast.Ident
ast.StructType
ast.FieldList
ast.Field
ast.CommentGroup
[]ast.Ident
...etc
Documentation
¶
Example comment for animal
type AnotherThing struct {
Foobar string
}
type Blah struct {
Bar string
}
This is the root struct
Second line for rootstruct
type SecondRootStruct struct {
Name string
}
This is another root struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.