Skip to content

Commit

Permalink
go fmt (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshaad7 authored and CascadingRadium committed Sep 13, 2023
1 parent effc1ef commit 08c14d5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion analysis/lang/es/stop_filter_es.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
19 changes: 14 additions & 5 deletions geo/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,24 @@ import (
// interpret it is as geo point. Supported formats:
// Container:
// slice length 2 (GeoJSON)
// first element lon, second element lat
//
// first element lon, second element lat
//
// string (coordinates separated by comma, or a geohash)
// first element lat, second element lon
//
// first element lat, second element lon
//
// map[string]interface{}
// exact keys lat and lon or lng
//
// exact keys lat and lon or lng
//
// struct
// w/exported fields case-insensitive match on lat and lon or lng
//
// w/exported fields case-insensitive match on lat and lon or lng
//
// struct
// satisfying Later and Loner or Lnger interfaces
//
// satisfying Later and Loner or Lnger interfaces
//
// in all cases values must be some sort of numeric-like thing: int/uint/float
func ExtractGeoPoint(thing interface{}) (lon, lat float64, success bool) {
Expand Down
8 changes: 6 additions & 2 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func NewConjunctionQuery(conjuncts ...query.Query) *query.ConjunctionQuery {
// NewDateRangeQuery creates a new Query for ranges
// of date values.
// Date strings are parsed using the DateTimeParser configured in the
// top-level config.QueryDateTimeParser
//
// top-level config.QueryDateTimeParser
//
// Either, but not both endpoints can be nil.
func NewDateRangeQuery(start, end time.Time) *query.DateRangeQuery {
return query.NewDateRangeQuery(start, end)
Expand All @@ -57,7 +59,9 @@ func NewDateRangeQuery(start, end time.Time) *query.DateRangeQuery {
// NewDateRangeInclusiveQuery creates a new Query for ranges
// of date values.
// Date strings are parsed using the DateTimeParser configured in the
// top-level config.QueryDateTimeParser
//
// top-level config.QueryDateTimeParser
//
// Either, but not both endpoints can be nil.
// startInclusive and endInclusive control inclusion of the endpoints.
func NewDateRangeInclusiveQuery(start, end time.Time, startInclusive, endInclusive *bool) *query.DateRangeQuery {
Expand Down

0 comments on commit 08c14d5

Please sign in to comment.