Documentation
¶
Overview ¶
Package render converts SteerSpec entity files into human-readable formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format string
Format represents an output format.
const (
FormatMarkdown Format = "markdown"
)
Supported output formats.
type MarkdownRenderer ¶
type MarkdownRenderer struct {
// contains filtered or unexported fields
}
MarkdownRenderer renders entity files to Markdown using Go templates.
func NewMarkdownRenderer ¶
func NewMarkdownRenderer(opts ...Option) *MarkdownRenderer
NewMarkdownRenderer creates a new Markdown renderer with optional configuration.
type Option ¶
type Option func(*MarkdownRenderer)
Option configures a MarkdownRenderer.
func WithTemplate ¶
WithTemplate overrides the built-in template with a custom template file.
type RuleIDFormatter ¶
type RuleIDFormatter struct {
OpenBracket string
CloseBracket string
RevisionSplitter string
StateSplitter string
}
RuleIDFormatter formats a rule's display identifier according to RLIFRMT rules.
func DefaultRuleIDFormatter ¶
func DefaultRuleIDFormatter() RuleIDFormatter
DefaultRuleIDFormatter returns a formatter with RLIFRMT default settings.
func (RuleIDFormatter) Format ¶
func (f RuleIDFormatter) Format(r *entity.Rule) string
Format returns the rendered rule identifier, e.g. "ENT-001.0/D".
Click to show internal directories.
Click to hide internal directories.