template

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderOptions

type RenderOptions struct {
	Format      string            // dotenv, json, yaml, template
	Variables   map[string]string // Variables to render
	OutputPath  string            // File path to write to
	Template    string            // Template content (for template format)
	TTL         time.Duration     // Auto-delete after this duration
	Permissions os.FileMode       // File permissions (default 0600)
}

RenderOptions configures template rendering

type Renderer

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

Renderer handles template rendering and file output

func New

func New(logger *logging.Logger) *Renderer

New creates a new renderer

func (*Renderer) Render

func (r *Renderer) Render(options RenderOptions) error

Render renders variables to the specified format and output

Jump to

Keyboard shortcuts

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