Documentation ¶
Overview ¶
Package render sets up the interface for rendering a .claw file to a language native representation. It also supports registering the handlers of those renderers (which are in other packages).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Supported = map[Lang]Renderer{}
Supported is langauges that we have registered support for.
Functions ¶
This section is empty.
Types ¶
type Lang ¶
type Lang uint8
Lang represents a programming language we can render a from a .claw file.
type Rendered ¶
type Rendered struct { // Package is the Claw package this represents. Package string // RepoVersion is the version the repo is at. RepoVersion string // Path is the path in the local filesystem that source .claw file can be found at. Path string // Lang is the language this is for. Lang Lang // Native is the output for the language. Native []byte }
Rendered represents rendered output for a language.
Directories ¶
Path | Synopsis |
---|---|
Package golang implements the Go language renderer.
|
Package golang implements the Go language renderer. |
Click to show internal directories.
Click to hide internal directories.