Skip to content

Commit

Permalink
Fix documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
echlebek committed Nov 23, 2017
1 parent 5739860 commit 90f4ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/dynamic/dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ func GetField(v Attributer, name string) (interface{}, error) {
return any.Get(name)
}

// Connect jsoniter.Any to govaluate.Parameters
// AnyParameters connects jsoniter.Any to govaluate.Parameters
type AnyParameters struct {
any jsoniter.Any
}

// Get implements the govaluate.Parameters interface.
func (p AnyParameters) Get(name string) (interface{}, error) {
any := p.any.Get(name)
if err := any.LastError(); err != nil {
Expand Down

0 comments on commit 90f4ca2

Please sign in to comment.