template

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parser

func Parser(format string, in any, out io.Writer) error

Parser 解析模版并填充内容

Types

type GenericTemplateParser

type GenericTemplateParser struct {
	Template string
}

GenericTemplateParser is a generic template parser.

func (*GenericTemplateParser) Parse

func (g *GenericTemplateParser) Parse(in any, out io.Writer) error

Parse parses the template and writes the result to the writer.

Jump to

Keyboard shortcuts

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