Skip to content

Commit

Permalink
Merge pull request #10 from jomla97/find-criterion-interface-value
Browse files Browse the repository at this point in the history
Findcriterion now accepts an interface{} instead of a string
  • Loading branch information
jomla97 committed Jan 8, 2021
2 parents e968657 + 829c937 commit c222bcc
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 c222bcc

Please sign in to comment.