parser

package
v0.0.0-...-1d0df6f Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForInput

func AskForInput(variable model.Variable, prefix string) (any, error)

AskForInput simulates asking the user for input based on the variable type and description.

func AskToContinue

func AskToContinue() bool

func ParseCustomType

func ParseCustomType(variable model.Variable, customType []model.Variable) (interface{}, error)

ParseCustomType handles parsing of custom types by asking for input for each field of the custom type.

func ParseGoTextTemplate

func ParseGoTextTemplate(templateContent string, variables map[string]any) (string, error)

func ParseTemplate

func ParseTemplate(template model.Template) (model.Template, error)

ParseTemplate parses the template and updates its variables with filled values.

func RenderTemplate

func RenderTemplate(template model.Template) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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