mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport pql.FormatValue
This commit is contained in:
parent
3a47638580
commit
aa7f6fca75
1 changed files with 3 additions and 3 deletions
|
|
@ -379,7 +379,7 @@ func (c *Call) String() string {
|
|||
case *Condition:
|
||||
fmt.Fprintf(&buf, "%v %s", key, v.String())
|
||||
default:
|
||||
fmt.Fprintf(&buf, "%v=%s", key, FormatValue(v))
|
||||
fmt.Fprintf(&buf, "%v=%s", key, formatValue(v))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -408,7 +408,7 @@ type Condition struct {
|
|||
|
||||
// String returns the string representation of the condition.
|
||||
func (cond *Condition) String() string {
|
||||
return fmt.Sprintf("%s %s", cond.Op.String(), FormatValue(cond.Value))
|
||||
return fmt.Sprintf("%s %s", cond.Op.String(), formatValue(cond.Value))
|
||||
}
|
||||
|
||||
// IntSliceValue reads cond.Value as a slice of uint64.
|
||||
|
|
@ -436,7 +436,7 @@ func (cond *Condition) IntSliceValue() ([]int64, error) {
|
|||
}
|
||||
}
|
||||
|
||||
func FormatValue(v interface{}) string {
|
||||
func formatValue(v interface{}) string {
|
||||
switch v := v.(type) {
|
||||
case string:
|
||||
return fmt.Sprintf("%q", v)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue