Documentation
¶
Overview ¶
Package rendering turns structured views into source files on disk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fileset ¶
type Fileset struct {
// contains filtered or unexported fields
}
Fileset represents a set of Artifacts that can be written to the file system.
func NewFileset ¶
NewFileset constructs a Fileset from the provided Artifacts.
type Meta ¶ added in v0.1.1
type Meta struct {
// contains filtered or unexported fields
}
Meta represents the binary metadata, adapted for use in templates.
type Release ¶ added in v0.1.1
type Release struct {
// contains filtered or unexported fields
}
Release represents the release metadata of the tool, adapted for use in templates.
func NewRelease ¶ added in v0.1.1
NewRelease creates a Release from the given meta.Release.
type Snapshot ¶ added in v0.1.1
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot represents the generation moment metadata, adapted for use in templates.
func NewSnapshot ¶ added in v0.1.1
NewSnapshot creates a Snapshot from the given meta.Snapshot.
type TemplateView ¶
type TemplateView struct {
// contains filtered or unexported fields
}
TemplateView represents a View that renders a named text/template with structured data.
func NewTemplateView ¶
func NewTemplateView(t *template.Template, name string, data any) TemplateView
NewTemplateView constructs a TemplateView for template name in t with the given data.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package golang provides the necessary templates and execution context to generate Go source code from the parsed Telegram Bot API specification.
|
Package golang provides the necessary templates and execution context to generate Go source code from the parsed Telegram Bot API specification. |