From 63f2eb67403a4d6ac20109e937056315643b781d Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Sun, 26 Jun 2016 10:25:09 -0400 Subject: [PATCH] update godocs for date range querying fixes #382 --- query_date_range.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/query_date_range.go b/query_date_range.go index 66edf1ff..df0de333 100644 --- a/query_date_range.go +++ b/query_date_range.go @@ -30,7 +30,8 @@ type dateRangeQuery struct { // NewDateRangeQuery creates a new Query for ranges // of date values. -// A DateTimeParser is chosen based on the field. +// Date strings are parsed using the DateTimeParser configured in the +// top-level config.QueryDateTimeParser // Either, but not both endpoints can be nil. func NewDateRangeQuery(start, end *string) *dateRangeQuery { return NewDateRangeInclusiveQuery(start, end, nil, nil) @@ -38,7 +39,8 @@ func NewDateRangeQuery(start, end *string) *dateRangeQuery { // NewDateRangeInclusiveQuery creates a new Query for ranges // of date values. -// A DateTimeParser is chosen based on the field. +// Date strings are parsed using the DateTimeParser configured in the +// top-level config.QueryDateTimeParser // Either, but not both endpoints can be nil. // startInclusive and endInclusive control inclusion of the endpoints. func NewDateRangeInclusiveQuery(start, end *string, startInclusive, endInclusive *bool) *dateRangeQuery {