comments

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentBlock

type CommentBlock struct {
	Lines     []Line
	StartLine int
	EndLine   int
}

func (CommentBlock) String

func (b CommentBlock) String() string

type GoParser

type GoParser struct {
	Parser
}

func (GoParser) Parse

func (p GoParser) Parse(content *string) (*ParseResult, error)

func (GoParser) ShouldParseFile

func (p GoParser) ShouldParseFile(extension string) bool

type Line

type Line struct {
	Content    string
	LineNumber int
}

func (Line) String

func (l Line) String() string

type ParseResult

type ParseResult struct {
	Comments []*CommentBlock
}

func Parse

func Parse(content *string, extension string) (*ParseResult, error)

type Parser

type Parser interface {
	Parse(content *string) (*ParseResult, error)
	ShouldParseFile(extension string) bool
}

Jump to

Keyboard shortcuts

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