io

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTemplate added in v0.6.0

func ExecuteTemplate(args []string) error

func ReadEnvironment

func ReadEnvironment() map[string]string

func ReadTemplate

func ReadTemplate(paths []string, html bool) (*template.GenericTemplate, error)

func SetErrOutput

func SetErrOutput(stderr io.Writer)

func SetInput

func SetInput(stdin io.Reader)

func SetOutput

func SetOutput(stdout io.Writer)

func Stderr

func Stderr() io.Writer

func Stdin

func Stdin() io.Reader

func Stdout

func Stdout() io.Writer

Types

type Context

type Context struct {
	Template   *template.GenericTemplate
	Data       decoder.Data
	OutputPath string
}

func NewContext

func NewContext(opts options.Options) (Context, error)

func (Context) Write

func (ctx Context) Write() error

type StdFiles

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

func NewStdFiles

func NewStdFiles() *StdFiles

Jump to

Keyboard shortcuts

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