doc

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatOutput

func FormatOutput(content, format string) (string, error)

func GetTemplateHelp

func GetTemplateHelp() string

func GetTemplateNames

func GetTemplateNames() []string

func RecommendOutputExtension

func RecommendOutputExtension(templateName, format string) string

func ValidateTemplate

func ValidateTemplate(templateName string) error

func ValidateTemplateForLanguage

func ValidateTemplateForLanguage(templateName, language string) error

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(srcPath, template string) (*Analyzer, error)

func (*Analyzer) Analyze

func (a *Analyzer) Analyze() (*SourceInfo, error)

type FileInfo

type FileInfo struct {
	Path     string `json:"path"`
	Content  string `json:"content"`
	Language string `json:"language"`
	Size     int64  `json:"size"`
}

type SourceInfo

type SourceInfo struct {
	Files     []FileInfo `json:"files"`
	Languages []string   `json:"languages"`
	Structure string     `json:"structure"`
	Summary   string     `json:"summary"`
}

type TemplateInfo

type TemplateInfo struct {
	Name        string
	Description string
	Extensions  []string
	Example     string
}

func GetTemplateInfo

func GetTemplateInfo(templateName string) (TemplateInfo, bool)

func ListTemplates

func ListTemplates() []TemplateInfo

Jump to

Keyboard shortcuts

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