Skip to content

Commit

Permalink
Move expressions -> expression
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed Jul 4, 2017
1 parent 405c5bf commit 9691dc2
Show file tree
Hide file tree
Showing 28 changed files with 633 additions and 577 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ install-dev-tools: ## install dependencies and development tools
gometalinter --install

lint: ## lint the package
gometalinter ./... --deadline=5m --exclude expressions/scanner.go --exclude y.go --exclude '.*_string.go'
gometalinter ./... --deadline=5m --exclude expression/scanner.go --exclude y.go --exclude '.*_string.go' --disable=gotype
@echo lint passed

test: ## test the package
Expand Down
2 changes: 1 addition & 1 deletion expressions/builders.go → expression/builders.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

import (
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion expressions/config.go → expression/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

// Config holds configuration information for expression interpretation.
type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion expressions/context.go → expression/context.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

// Context is the expression evaluation context. It maps variables names to values.
type Context interface {
Expand Down
2 changes: 1 addition & 1 deletion expressions/drops.go → expression/drops.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

type drop interface {
ToLiquid() interface{}
Expand Down
4 changes: 2 additions & 2 deletions expressions/expressions.go → expression/expressions.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package expressions parses and evaluates the expression language that is used in objects {{a.b[c]}} and tag parameters {%assign pages = site.pages | reverse%}.
package expressions
// Package expression parses and evaluates the expression language that is used in objects {{a.b[c]}} and tag parameters {%assign pages = site.pages | reverse%}.
package expression

import (
"github.com/osteele/liquid/generics"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion expressions/filters.go → expression/filters.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion expressions/functional.go → expression/functional.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

type expressionWrapper struct {
fn func(ctx Context) (interface{}, error)
Expand Down
2 changes: 1 addition & 1 deletion expressions/parser.go → expression/parser.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion expressions/parser_test.go → expression/parser_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package expressions
package expression

import (
"fmt"
Expand Down
Loading

0 comments on commit 9691dc2

Please sign in to comment.