Skip to content

Commit

Permalink
Findcriterion now accepts an interface{} instead of a string
Browse files Browse the repository at this point in the history
  • Loading branch information
jomla97 committed Jan 8, 2021
1 parent 8c30980 commit 829c937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/findCriterion.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package filemaker
//FindCriterion represents the findcriterion that builds up a findrequest
type FindCriterion struct {
FieldName string
Value string
Value interface{}
}

//NewFindCriterion returns a new findcriterion
func NewFindCriterion(fieldName string, value string) FindCriterion {
func NewFindCriterion(fieldName string, value interface{}) FindCriterion {
return FindCriterion{
fieldName,
value,
Expand Down

0 comments on commit 829c937

Please sign in to comment.