Files
dolt/enc/reffer_impl.go
T
Aaron Boodman b33cab2b34 Rename package 'store' to 'chunks'.
This is in preparation for renaming the 'Commit' abstraction to
DataStore. So we will essentially have a 'chunkstore' abstraction
and a 'datastore' abstraction.
2015-06-16 16:19:16 -07:00

20 lines
386 B
Go

package enc
import (
"github.com/attic-labs/noms/chunks"
. "github.com/attic-labs/noms/dbg"
"github.com/attic-labs/noms/ref"
"github.com/attic-labs/noms/types"
)
func init() {
types.Reffer = refferImpl
}
func refferImpl(v types.Value) ref.Ref {
r, err := WriteValue(v, chunks.NopSink{})
// This can never fail because NopSink doesn't write anywhere.
Chk.Nil(err)
return r
}