asteng

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTEngine

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

func NewASTEngine

func NewASTEngine() *ASTEngine

func (*ASTEngine) DetectLanguage

func (e *ASTEngine) DetectLanguage(content string) string

func (*ASTEngine) ExtractSignatures

func (e *ASTEngine) ExtractSignatures(content, language string) []Signature

func (*ASTEngine) FileMap

func (e *ASTEngine) FileMap(content, language string) string

type Signature

type Signature struct {
	Name    string `json:"name"`
	Type    string `json:"type"`
	Line    int    `json:"line"`
	Content string `json:"content"`
}

type SignaturePattern

type SignaturePattern struct {
	Type    string
	Pattern string
}

Jump to

Keyboard shortcuts

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