Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fence ¶
type Fence struct {
Lang string `yaml:"lang" json:"lang"`
Required bool `yaml:"required,omitempty" json:"required,omitempty"`
Repeatable bool `yaml:"repeatable,omitempty" json:"repeatable,omitempty"`
Order int `yaml:"order,omitempty" json:"order,omitempty"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Schema map[string]interface{} `yaml:"schema,omitempty" json:"schema,omitempty"`
}
type FenceExample ¶
type FenceExample struct {
Lang string `yaml:"lang" json:"lang"`
Body interface{} `yaml:"body" json:"body"`
}
type Template ¶
type Template struct {
ID string `yaml:"id" json:"id"`
Name string `yaml:"name" json:"name"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Format string `yaml:"format,omitempty" json:"format,omitempty"`
AppliesTo []string `yaml:"appliesTo,omitempty" json:"appliesTo,omitempty"`
Platforms []string `yaml:"platforms,omitempty" json:"platforms,omitempty"`
FormFactors []string `yaml:"formFactors,omitempty" json:"formFactors,omitempty"`
Surfaces []string `yaml:"surfaces,omitempty" json:"surfaces,omitempty"`
Instructions string `yaml:"instructions,omitempty" json:"instructions,omitempty"`
Fences []Fence `yaml:"fences,omitempty" json:"fences,omitempty"`
Schema map[string]interface{} `yaml:"schema,omitempty" json:"schema,omitempty"`
Examples []TemplateExample `yaml:"examples,omitempty" json:"examples,omitempty"`
}
type TemplateExample ¶
type TemplateExample struct {
Title string `yaml:"title,omitempty" json:"title,omitempty"`
Fences []FenceExample `yaml:"fences,omitempty" json:"fences,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.