process

package
v0.0.0-...-6da8a1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(val any) bool

func List

func List(searchPath string)

Types

type Extension

type Extension struct {
	// contains filtered or unexported fields
}
type Link struct {
	Rel          string `json:"rel,omitempty"`
	Href         string `json:"href,omitempty"`
	Type         string `json:"type,omitempty"`
	InstanceName string `json:"instanceName,omitempty"`
}

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) 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) Add

func (pr *Printer) Add(c any)

func (*Printer) AddInterface

func (pr *Printer) AddInterface(found any, isString bool)

func (*Printer) AddText

func (pr *Printer) AddText(s string)

func (*Printer) ByteArr

func (pr *Printer) ByteArr() []byte

func (*Printer) String

func (pr *Printer) String() string

type Processor

type Processor struct {
	VarMap map[string]any
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(out string, in string, vars string) *Processor

func (*Processor) NewProcessor

func (p *Processor) NewProcessor() *Processor

func (*Processor) Process

func (p *Processor) Process(filename string) error

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()

func (*Processor) SetInputPath

func (p *Processor) SetInputPath(searchPath string)

func (*Processor) SetOutputDir

func (p *Processor) SetOutputDir(outputDir string)

func (*Processor) SetPlaceholderMap

func (p *Processor) SetPlaceholderMap(filename string)

func (*Processor) String

func (p *Processor) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL