templates

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileTemplate                   = "fileTemplate"
	MapperStructureTemplate        = "mapperStructureTemplate"
	MapperMethodTemplate           = "mapperMethodTemplate"
	NewVariableTemplate            = "newVariableTemplate"
	NotNilSourceTemplate           = "notNilSourceTemplate"
	NotNilBlockTemplate            = "notNilBlockTemplate"
	PrimitiveConverterFuncTemplate = "primitiveConverterFuncTemplate"
	ArgumentNameAndTypeTemplate    = "argumentNameAndTypeTemplate"
	SliceMappingTemplate           = "sliceMappingTemplate"
	MapMappingTemplate             = "mapMappingTemplate"
)

Variables

This section is empty.

Functions

func Execute

func Execute(templateName string, data any) ([]byte, error)

func ExecuteTemplate

func ExecuteTemplate(tplStr string, data any) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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