Skip to content

Commit

Permalink
Add generic String docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Jun 28, 2020
1 parent f2a45a5 commit 2435700
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/query/expr/literal.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func (v LiteralValue) IsEqual(other Expr) bool {
return ok && err == nil
}

// String implements the fmt.Stringer interface.
func (v LiteralValue) String() string {
return document.Value(v).String()
}
Expand Down Expand Up @@ -135,6 +136,7 @@ type KVPair struct {
V Expr
}

// String implements the fmt.Stringer interface.
func (p KVPair) String() string {
return fmt.Sprintf("%q: %v", p.K, p.V)
}
Expand Down

0 comments on commit 2435700

Please sign in to comment.