mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-14 19:38:56 -05:00
1a4bdae624
No more implicit Get or Equals
25 lines
311 B
Go
25 lines
311 B
Go
package types
|
|
|
|
import (
|
|
"github.com/attic-labs/noms/ref"
|
|
)
|
|
|
|
type Ref struct {
|
|
R ref.Ref
|
|
}
|
|
|
|
func (r Ref) Equals(other Value) bool {
|
|
if other, ok := other.(Ref); ok {
|
|
return r.Ref() == other.Ref()
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (r Ref) Ref() ref.Ref {
|
|
return r.R
|
|
}
|
|
|
|
func (r Ref) Chunks() []Future {
|
|
return nil
|
|
}
|