Skip to content

Commit c245100

Browse files
committed
expr v2-rc.1
1 parent f4accb8 commit c245100

File tree

7 files changed

+574
-330
lines changed

7 files changed

+574
-330
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ product.Stock < 15
4444
## Install
4545

4646
```
47-
go get -u github.com/antonmedv/expr
47+
go get github.com/antonmedv/expr
4848
```
4949

5050
<a href="https://www.patreon.com/antonmedv">
@@ -54,7 +54,7 @@ go get -u github.com/antonmedv/expr
5454
## Documentation
5555

5656
* See [docs](docs) page for developer documentation.
57-
* See [The Expression Syntax](https://github.com/antonmedv/expr/wiki/The-Expression-Syntax) page to learn the syntax.
57+
* See [The Expression Syntax](docs/The-Expression-Syntax.md) page to learn the syntax.
5858

5959
## Examples
6060

checker/env.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ func CreateTypesTable(i interface{}) TypesTable {
5252
types[key.String()] = Tag{Type: reflect.TypeOf(value.Interface())}
5353
}
5454
}
55+
56+
// A map may have method too.
57+
for i := 0; i < t.NumMethod(); i++ {
58+
m := t.Method(i)
59+
types[m.Name] = Tag{Type: m.Type, method: true}
60+
}
5561
}
5662

5763
return types

doc.go

Lines changed: 0 additions & 167 deletions
This file was deleted.

doc_test.go

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)