aboutsummaryrefslogtreecommitdiff
path: root/tmpl.go
blob: 27191cd4528be3d43e3de0da06ecc770fcbd7047 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

// SPDX-License-Identifier: BSD-2-Clause
// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>

package main

import (
	_ "embed"
	"log"
	"text/template"
)

//go:embed challenge.tmpl
var tmplString string
var tmpl *template.Template

func init() {
	var err error
	tmpl, err = template.New("powxy").Parse(tmplString)
	if err != nil {
		log.Fatal(err)
	}
}