An open API service indexing awesome lists of open source software.

https://github.com/kettek/go-multipath

Simple file access aggregated from multiple paths. Like PhysicsFS but far meeker.
https://github.com/kettek/go-multipath

golang multiple paths physfs physicsfs

Last synced: 11 months ago
JSON representation

Simple file access aggregated from multiple paths. Like PhysicsFS but far meeker.

Awesome Lists containing this project

README

          

# go-multipath
[![Go Reference](https://pkg.go.dev/badge/github.com/kettek/go-multipath.svg)](https://pkg.go.dev/github.com/kettek/go-multipath)

A simple library for accessing files from multiple paths.

```
var mpath multipath.Multipath

mpath.AddPath("a", multipath.FirstPriority)
mpath.AddPath("b", multipath.LastPriority)

file, err := mpath.Open("myFile")
if err != nil {
panic(err)
}
defer file.Close()

// Do stuff with file
```