Documentation ¶
Index ¶
- type Block
- func (b *Block) ContainsText(s string) bool
- func (b *Block) LineComplexity() int
- func (b *Block) LineCount() int
- func (b *Block) LineMaxLength() int
- func (b *Block) NoLineDecl(linebreak string) (string, error)
- func (b *Block) Render(linebreak string) (string, error)
- func (b *Block) W(l string, args ...any)
- func (b *Block) WB()
- func (b *Block) WE(indent int, prefix ...string)
- type Blocks
- type File
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Key string `json:"key"` Type string `json:"type"` Lines []string `json:"lines"` SkipDecl bool `json:"skipDecl,omitempty"` Lints []string `json:"lints,omitempty"` }
func (*Block) ContainsText ¶ added in v0.10.32
func (*Block) LineComplexity ¶ added in v0.10.32
func (*Block) LineMaxLength ¶ added in v0.10.32
func (*Block) NoLineDecl ¶ added in v0.10.32
type File ¶
Click to show internal directories.
Click to hide internal directories.