Procs
proc getLoaded[T: ResourceType](path: string; package = DEFAULT_PACKAGE): T
proc isLoaded[T: ResourceType](path: string; package = DEFAULT_PACKAGE): bool
proc loadAsync[T: ResourceType](path: string; package = DEFAULT_PACKAGE)
proc loadBytes(path, package: string): seq[byte] {....gcsafe, raises: [IOError, OSError, KeyError, Exception], tags: [ReadIOEffect], forbids: [].}
proc loadConfig(path: string; package = DEFAULT_PACKAGE): TomlValueRef {....gcsafe, raises: [IOError, OSError, TomlError, ValueError, KeyError, Exception], tags: [ReadIOEffect, RootEffect], forbids: [].}
proc loadJson(path: string; package = DEFAULT_PACKAGE): JsonNode {....gcsafe, raises: [ IOError, OSError, JsonParsingError, ValueError, KeyError, Exception], tags: [ReadIOEffect, WriteIOEffect], forbids: [].}
Exports
-
getFloat, newTTable, newTInt, getElems, ?, hash, []=, getInt, ?, contains, ?, copy, [], {}=, $, toJson, parseStream, ?, simpleGetOrDefault, TomlValue, hash, $, parseFile, Sign, $, getTable, add, newTFloat, ?, ?, newTArray, newTNull, ?*, ==, {}, len, $, TomlTableRef, ?, existsKey, TomlValueRef, TomlDateTime, TomlError, TomlTime, parseFile, add, ?, ?, contains, TomlTable, delete, parseToml, [], toJson, getBool, $, TomlDate, newTBool, getOrDefault, ?, toTomlString, parseString, getBiggestInt, dump, getStr, TomlValueKind, newTString, hasKey, toTomlString