fileinclude

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor 文件包含处理器

func NewProcessor

func NewProcessor() *Processor

NewProcessor 创建新的处理器

func (*Processor) FromFile

func (p *Processor) FromFile(filename string) *Processor

FromFile 从文件路径输入

func (*Processor) FromReader

func (p *Processor) FromReader(r io.Reader, currentDir string) *Processor

FromReader 从io.Reader输入

func (*Processor) FromString

func (p *Processor) FromString(content string, currentDir string) *Processor

FromString 从字符串输入

func (*Processor) SetMaxDepth

func (p *Processor) SetMaxDepth(depth int) *Processor

SetMaxDepth 设置最大递归深度

func (*Processor) SetPrefix

func (p *Processor) SetPrefix(prefix string) *Processor

func (*Processor) ToFile

func (p *Processor) ToFile(outputPath string) error

ToFile 输出到文件

func (*Processor) ToReader

func (p *Processor) ToReader() (io.Reader, error)

ToReader 输出为io.Reader

func (*Processor) ToString

func (p *Processor) ToString() (string, error)

ToString 输出为字符串

Jump to

Keyboard shortcuts

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