Documentation ¶
Index ¶
- Constants
- func IsNil(val any) bool
- func List(searchPath string)
- type Extension
- type Link
- type PathObject
- func (p *PathObject) AddArray(pos int) *PathObject
- func (p *PathObject) AddLiteral() *PathObject
- func (p *PathObject) AddMap(name string) *PathObject
- func (p *PathObject) Deep() int
- func (p *PathObject) IsPath(path string) bool
- func (p *PathObject) Prefix() string
- func (p *PathObject) String() string
- func (p *PathObject) Up()
- type Printer
- type Processor
- func (p *Processor) NewProcessor() *Processor
- func (p *Processor) Process(filename string) error
- func (p *Processor) Save()
- func (p *Processor) SetInputPath(searchPath string)
- func (p *Processor) SetOutputDir(outputDir string)
- func (p *Processor) SetPlaceholderMap(varMap map[string]any)
- func (p *Processor) SetPlaceholderMapFile(filename string)
- func (p *Processor) String() string
Constants ¶
View Source
const StreamPath = "///"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PathObject ¶
type PathObject struct {
// contains filtered or unexported fields
}
func (*PathObject) AddArray ¶
func (p *PathObject) AddArray(pos int) *PathObject
func (*PathObject) AddLiteral ¶
func (p *PathObject) AddLiteral() *PathObject
func (*PathObject) AddMap ¶
func (p *PathObject) AddMap(name string) *PathObject
func (*PathObject) Deep ¶
func (p *PathObject) Deep() int
func (*PathObject) IsPath ¶
func (p *PathObject) IsPath(path string) bool
func (*PathObject) Prefix ¶
func (p *PathObject) Prefix() string
func (*PathObject) String ¶
func (p *PathObject) String() string
func (*PathObject) Up ¶
func (p *PathObject) Up()
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter() *Printer
func (*Printer) AddInterface ¶
type Processor ¶
func (*Processor) NewProcessor ¶
func (*Processor) Process ¶
Process is the main entry point to build a thing description out of a thing model, based on the parameters in Processor struct but also to process submodel in a top level TM.
func (*Processor) Save ¶
func (p *Processor) Save()
Save the serialized TD of the already processed TM to the defined output
func (*Processor) SetInputPath ¶
func (*Processor) SetOutputDir ¶
func (*Processor) SetPlaceholderMap ¶
func (*Processor) SetPlaceholderMapFile ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.