semicongine/loaders

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: [].}