Skip to content

Commit

Permalink
Merge pull request PaesslerAG#65 from buglloc/go1.17
Browse files Browse the repository at this point in the history
Parser.Const Go1.17 compatibility
  • Loading branch information
generikvault committed Oct 21, 2021
2 parents ab23661 + 2003750 commit bfa8e95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions evaluable.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (*Parser) Const(value interface{}) Evaluable {
return constant(value)
}

//go:noinline
func constant(value interface{}) Evaluable {
return func(c context.Context, v interface{}) (interface{}, error) {
return value, nil
Expand Down

0 comments on commit bfa8e95

Please sign in to comment.