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 Import
- type ImportType
- type Imports
- 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 ¶
type Import ¶
type Import struct {
Type ImportType
Value string
Alias string
}
func NewImport ¶
func NewImport(t ImportType, v string) *Import
type ImportType ¶
type ImportType string
const ( ImportTypeInternal ImportType = "internal" ImportTypeExternal ImportType = "external" ImportTypeApp ImportType = "app" )
Click to show internal directories.
Click to hide internal directories.