Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 439 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 439 Bytes

go-multipath

Go Reference

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