From fb7de28557ba33ccb247651bbfa5ffe26136f102 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 22:01:56 -0500 Subject: [PATCH] Unexport pql.TimeFormat --- pql/ast.go | 2 +- pql/parser.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pql/ast.go b/pql/ast.go index 88095c49b..88af892ad 100644 --- a/pql/ast.go +++ b/pql/ast.go @@ -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: diff --git a/pql/parser.go b/pql/parser.go index 3bc91a2ee..611294971 100644 --- a/pql/parser.go +++ b/pql/parser.go @@ -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 {