registry-api-descriptor-template

command
Version: v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

registry-api-descriptor-template uses the APIDescriptor defined in the api/v2 package to execute templates passed to the command line.

For example, to generate a new API specification, one would execute the following command from the repo root:

$ registry-api-descriptor-template docs/spec/api.md.tmpl > docs/spec/api.md

The templates are passed in the api/v2.APIDescriptor object. Please see the package documentation for fields available on that object. The template syntax is from Go's standard library text/template package. For information on Go's template syntax, please see golang.org/pkg/text/template.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL