Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportedExtensions ¶
func SupportedExtensions() []string
SupportedExtensions returns file extensions with registered extractors.
Types ¶
type Entry ¶
type Entry struct {
Section Section
Name string
Detail string // one-line signature or type info
StartLine int // 1-indexed
EndLine int // 1-indexed
Fields []string
}
Entry is one element of the file skeleton.
type Section ¶
type Section string
Section labels an entry for the output skeleton.
const ( SectionPackage Section = "Package" SectionImport Section = "Import" SectionType Section = "Type" SectionFunc Section = "Function" SectionMethod Section = "Method" SectionConst Section = "Constant" SectionVar Section = "Variable" SectionClass Section = "Class" SectionTrait Section = "Trait" // interface in Java, trait in Rust SectionImpl Section = "Impl" SectionModule Section = "Module" SectionMacro Section = "Macro" SectionHeading Section = "Heading" // markdown headings SectionResource Section = "Resource" // terraform/HCL blocks )
Click to show internal directories.
Click to hide internal directories.