Skip to content

Commit 3ac8c43

Browse files
committed
0.0.9 release
1 parent 7681c98 commit 3ac8c43

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
# Description
66

7-
**go-dfl** is a Go implementation of the Dynamic Filter Language (DFL).
7+
**go-dfl** is a Go implementation of the Dynamic Filter Language (DFL). **go-dfl** depends on:
8+
- [go-adaptive-functions](https://github.com/spatialcurrent/go-adaptive-functions) for many of the basic functions.
9+
- [go-counter](https://github.com/spatialcurrent/go-counter) for counting for statistical functions.
810

911
Using cross compilers, this library can also be called by other languages. This library is cross compiled into a Shared Object file (`*.so`). The Shared Object file can be called by `C`, `C++`, and `Python` on Linux machines. See the examples folder for patterns that you can use. This library is also compiled to pure `JavaScript` using [GopherJS](https://github.com/gopherjs/gopherjs).
1012

cmd/dfl/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ func main() {
119119
log.Fatal(errors.Wrap(err, "error evaluating context expression for "+strings.TrimSpace(pair[0])))
120120
}
121121
ctx[strings.TrimSpace(pair[0])] = arr
122+
case dfl.Set:
123+
_, arr, err := value.(dfl.Set).Evaluate(map[string]interface{}{}, map[string]interface{}{}, funcs, GO_DFL_DEFAULT_QUOTES[1:])
124+
if err != nil {
125+
log.Fatal(errors.Wrap(err, "error evaluating context expression for "+strings.TrimSpace(pair[0])))
126+
}
127+
ctx[strings.TrimSpace(pair[0])] = arr
122128
case dfl.Literal:
123129
ctx[strings.TrimSpace(pair[0])] = value.(dfl.Literal).Value
124130
case *dfl.Literal:

dfl/Version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
package dfl
99

10-
var VERSION = "0.0.8"
10+
var VERSION = "0.0.9"

scripts/build_cli.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ echo "Building program for go-dfl"
1818
cd $DEST
1919
for GOOS in linux darwin windows; do
2020
GOOS=${GOOS} GOARCH=amd64 go build -o "dfl_${GOOS}_amd64" github.com/spatialcurrent/go-dfl/cmd/dfl
21-
exit 0
2221
done
2322
if [[ "$?" != 0 ]] ; then
2423
echo "Error building program for go-dfl"

0 commit comments

Comments
 (0)