Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 653 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 653 Bytes

wisp-resource-loader

A testable way to load resources. See ResourceLoader for documentation.

Also see wisp-resource-loader-testing .

Usage

val resourceLoader: ResourceLoader = ResourceLoader(
  mapOf(
    "classpath:" to ClasspathResourceLoaderBackend,
    "memory:" to MemoryResourceLoaderBackend(),
    "filesystem:" to FilesystemLoaderBackend,
  )
)

val resource = resourceLoader.utf8("classpath:/wisp/resources/ResourceLoaderTest.txt")