blob: dc8c0779f4e75719c7f18c6cdcb9e7c42ab06bea (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package chain
import "codeberg.org/lindenii/furgit/ref/store"
// New creates an ordered reference store chain.
//
// The provided backends must be non-nil and distinct.
// Chain borrows the provided backends and does not close them in Close.
func New(backends ...refstore.ReadingStore) *Chain {
return &Chain{
backends: append([]refstore.ReadingStore(nil), backends...),
}
}
|