render

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package render provides a simple way to render as template

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap added in v0.0.12

func FuncMap() template.FuncMap

FuncMap reutrns all the supported functions

func Render

func Render(name, text string, ctx interface{}) (result string, err error)

Render render then return the result

func RenderThenPrint added in v0.0.12

func RenderThenPrint(name, text string, ctx interface{}, w io.Writer) (err error)

RenderThenPrint renders the template then prints the result

Types

This section is empty.

Jump to

Keyboard shortcuts

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