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:
Vishesh Yadav 2020-04-26 20:44:23 -07:00
parent 22fa93264f
commit ecb1d9b8c6
1 changed files with 0 additions and 2 deletions

View File

@ -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.