go: Subspace doesn't have to inherit fmt.Stringer
Go does duck-typing, so any `struct` can choose to implement String() and it will automatically be Stringer(). There is no need to enforce in out interface.
This commit is contained in:
parent
22fa93264f
commit
ecb1d9b8c6
|
@ -44,8 +44,6 @@ import (
|
|||
// Subspace represents a well-defined region of keyspace in a FoundationDB
|
||||
// database.
|
||||
type Subspace interface {
|
||||
fmt.Stringer
|
||||
|
||||
// Sub returns a new Subspace whose prefix extends this Subspace with the
|
||||
// encoding of the provided element(s). If any of the elements are not a
|
||||
// valid tuple.TupleElement, Sub will panic.
|
||||
|
|
Loading…
Reference in New Issue