Skip to content

Commit 7a0b0f0

Browse files
committed
Fixed issue when encoding some maps
1 parent 465af7f commit 7a0b0f0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## v1.1.2
6+
### Fixed
7+
- Fixed issue when encoding some maps
8+
59
## v1.1.1
610
### Fixed
711
- Corrected protobuf import

query_control.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func Expr(val interface{}) Term {
6767
switch valType.Kind() {
6868
case reflect.Func:
6969
return makeFunc(val)
70-
case reflect.Struct, reflect.Ptr:
70+
case reflect.Struct, reflect.Map, reflect.Ptr:
7171
data, err := encode(val)
7272

7373
if err != nil || data == nil {

0 commit comments

Comments
 (0)