Versions in this module Expand all Collapse all v0 v0.0.1 Aug 19, 2022 Changes in this version + const ConfFolder + const DeviceTemplateName + const DevicesFileName + const DevicesFolder + const EntriesFolder + const KeysFileName + const KeysTemplateName + const LibraryName + const ValueTemplateName + const ValuesFileName + var BasePackage = path.Join(LibraryName, "pkg") + var DeviceList []byte + var DeviceTemplate string + var Devices = Data[ObjectOptions] + var DevicesPackage = path.Join(BasePackage, ConfFolder, DevicesFolder) + var DevicesPath = filepath.Join("pkg", DevicesFolder, DevicesFileName) + var EntriesPackage = path.Join(BasePackage, ConfFolder, EntriesFolder) + var HeaderTemplate string + var InternalPackage = path.Join(LibraryName, "internal", "pkg") + var JsonHelpersPackage = path.Join(InternalPackage, "tools") + var KeyList []byte + var KeyTemplate string + var Keys = Data[KeyOptions] + var KeysPath = filepath.Join("pkg", EntriesFolder, KeysFileName) + var ObjectTemplate string + var Template *template.Template + var ValueList []byte + var ValueTemplate string + var Values = Data[ObjectOptions] + var ValuesPath = filepath.Join("pkg", EntriesFolder, ValuesFileName) + func IsValue(s string) bool + func RecreateDir(dirname string) + func WriteTemplate(filename string, templateName string, data any) + type Data struct + Imports []string + PackageName string + Values []T + type KeyOptions struct + BiVal bool + Def bool + DefType string + DefVal string + LongName string + Optional bool + ShortName string + Type1 string + Type2 string + TypeName string + func GetKey(s string) *KeyOptions + type ObjectOptions struct + Keys []string + Name string + TypeName string