blob: f4b8ef6e4d7fe6e396123b0344408e6d51cf3cf6 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package chain
import refstore "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...),
}
}
|