Files
dolt/types/value.go
Erik Arvidsson 02c47661fd Make all usages of Type in Go use pointers (#1295)
This is in preparation of allowing back references which requires
pointers to be able to compare that the structs are the same.
2016-04-22 15:19:42 -07:00

21 lines
390 B
Go

package types
import (
"github.com/attic-labs/noms/ref"
)
// Value is implemented by every noms value
type Value interface {
Equals(other Value) bool
Ref() ref.Ref
// Returns the immediate children of this value in the DAG, if any, not including Type().
ChildValues() []Value
Chunks() []RefBase
Type() *Type
}
type OrderedValue interface {
Value
Less(other OrderedValue) bool
}