Unexport pql.TimeFormat

This commit is contained in:
Cody Soyland 2018-07-05 22:01:56 -05:00
parent 75ea43c9da
commit fb7de28557
2 changed files with 3 additions and 3 deletions

View file

@ -445,7 +445,7 @@ func formatValue(v interface{}) string {
case []uint64:
return fmt.Sprintf("%s", joinUint64Slice(v))
case time.Time:
return fmt.Sprintf("\"%s\"", v.Format(TimeFormat))
return fmt.Sprintf("\"%s\"", v.Format(timeFormat))
case *Condition:
return v.String()
default:

View file

@ -22,8 +22,8 @@ import (
"github.com/pkg/errors"
)
// TimeFormat is the go-style time format used to parse string dates.
const TimeFormat = "2006-01-02T15:04"
// timeFormat is the go-style time format used to parse string dates.
const timeFormat = "2006-01-02T15:04"
// parser represents a parser for the PQL language.
type parser struct {