interpolate

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 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 Request

type Request struct {
	Template  string            `yaml:"omitempty"`
	Variables []models.Variable `yaml:"omitempty"`
}

Request is the request object for casting a template

type Response

type Response struct {
	SourceFile string        `yaml:"omitempty"`
	Caster     models.Caster `yaml:"omitempty"`
}

type Service

type Service interface {
	Interpolate(req *Request) (*Response, error)
}

func NewService

func NewService(fs afs.FS, env env.Environment, path *filepath.Processor) Service

NewService creates a new instance of the cast service

Jump to

Keyboard shortcuts

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