File: version-doc.go

package info (click to toggle)
golang-github-opencontainers-specs 1.0.0~rc2%2Bgit20160926.38.1c7c27d-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 340 kB
  • ctags: 106
  • sloc: makefile: 97
file content (25 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (9)
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
// +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)
	}
}