Skip to content

Commit

Permalink
Used forked jq
Browse files Browse the repository at this point in the history
  • Loading branch information
gabesullice committed Jan 28, 2018
1 parent 006e00d commit 2dc7a5f
Show file tree
Hide file tree
Showing 42 changed files with 428 additions and 33 deletions.
8 changes: 4 additions & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Gopkg.toml
Expand Up @@ -22,5 +22,5 @@


[[constraint]]
branch = "master"
name = "github.com/savaki/jq"
branch = "rename-imports"
name = "github.com/gabesullice/jq"
10 changes: 8 additions & 2 deletions main.go
Expand Up @@ -6,8 +6,13 @@ import (
"net/http/httputil"
"net/url"
"os"
"regexp"

"github.com/savaki/jq"
"github.com/gabesullice/jq"
)

var (
reArray = regexp.MustCompile(`^\s*\[\s*(\d+)(\s*:\s*(\d+))?\s*]\s*$`)
)

type PushProcessor struct {
Expand Down Expand Up @@ -45,7 +50,8 @@ func main() {
)
log.Fatalln(http.ListenAndServe(":8080", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
var ops []jq.Op
for _, path := range os.Args[2:] {
for _, path := range r.Header["X-Push-Request"] {
log.Println(reArray.FindAllStringSubmatch(path, -1))
ops = append(ops, jq.Must(jq.Parse(path)))
}
backend.ServeHTTP(PushProcessor{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
71 changes: 71 additions & 0 deletions vendor/github.com/gabesullice/jq/scanner/find_from.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2dc7a5f

Please sign in to comment.