Skip to main content

go_template

Go html/template with a schema-validated field.

Browse this template in the repository →

The PDFs below are rendered live by PDF Server from the shipped examples.

default

Your browser can’t display this PDF inline — use the download link below.

Download PDF — go_template / default

Inputs

Render data

default

{
"value": "hello"
}

Data schema

schema.json

{
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"required": [
"value"
]
}

Template

template.tmpl

<html><body><h1>{{ .value }}</h1></body></html>