File: version-doc.go

package info (click to toggle)
golang-github-opencontainers-specs 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 596 kB
  • sloc: makefile: 115
file content (26 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//go:build ignore
// +build ignore

package main

import (
	"fmt"
	"html/template"
	"os"

	"github.com/opencontainers/runtime-spec/specs-go"
)

var markdownTemplateString = `

**Specification Version:** *{{.}}*

`

var markdownTemplate = template.Must(template.New("markdown").Parse(markdownTemplateString))

func main() {
	if err := markdownTemplate.Execute(os.Stdout, specs.Version); err != nil {
		fmt.Fprintln(os.Stderr, err)
	}
}