Skip to content

Commit

Permalink
Parser.Const Go1.17 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
buglloc committed Oct 15, 2021
1 parent 2be8504 commit 2003750
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 2003750

Please sign in to comment.