tpl

package
v0.13.11 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TemplateFile string
	OutputFile   string
	Prefix       string
	Debug        bool
	Version      bool
}

func ParseFlags

func ParseFlags() Config

func (Config) Usage

func (c Config) Usage()

type Logger

type Logger interface {
	Debug(msg string, args ...any)
	Error(msg string, args ...any)
}

func NewLogger

func NewLogger(debug bool) Logger

type QuotingRegexes

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

type StdLogger

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

func (*StdLogger) Debug

func (l *StdLogger) Debug(msg string, args ...any)

func (*StdLogger) Error

func (l *StdLogger) Error(msg string, args ...any)

type TemplateProcessor

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

func NewTemplateProcessor

func NewTemplateProcessor(config Config, logger Logger) (*TemplateProcessor, error)

func (*TemplateProcessor) Close

func (tp *TemplateProcessor) Close() error

func (*TemplateProcessor) RenderTemplate

func (tp *TemplateProcessor) RenderTemplate() error

Jump to

Keyboard shortcuts

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