diff --git a/.gitignore b/.gitignore index 956657e..819f6d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.sublime-* .DS_Store +*.swp +#*.*# diff --git a/README.md b/README.md index 55400eb..faf8a71 100644 --- a/README.md +++ b/README.md @@ -8,38 +8,18 @@ Syntax-wise, it is as close as possible to jQuery, with the same function names ## Installation -**This is a temporary installation procedure until Go1.1 is released.** + $ go get github.com/PuerkitoBio/goquery -1- Install the latest experimental packages version that compiles with Go1 : - - $ cd $GOPATH/src - $ hg clone -r d9ff34d481bc https://code.google.com/p/go go-exp - $ mv go-exp/src/pkg/exp . - $ rm -rf go-exp - $ go install exp/... - -2- Install the latest Cascadia version that compiles with Go1: - - $ cd $GOPATH/src/code.google.com/p - $ hg clone -r 58dc1fe4094a https://code.google.com/p/cascadia cascadia - $ go install cascadia/... - -3- Install GoQuery: - - $ go get github.com/PuerkitoBio/goquery - -4- (optional) To run unit tests: +(optional) To run unit tests: $ cd $GOPATH/src/github.com/PuerkitoBio/goquery $ go test -5- (optional) To run benchmarks: +(optional) To run benchmarks: $ cd $GOPATH/src/github.com/PuerkitoBio/goquery $ go test -bench=".*" -**Once Go1.1 is released, goquery will be *gogetable* without the first 2 steps (see [issue #6][i6]).** - ## Changelog * **v0.2.0** : Add support for negative indices in Slice(). **BREAKING CHANGE** `Document.Root` is removed, `Document` is now a `Selection` itself (a selection of one, the root element, just like `Document.Root` was before). Add jQuery's Closest() method. @@ -122,4 +102,3 @@ The [BSD 3-Clause license][bsd], the same as the [Go language][golic]. Cascadia' [caslic]: http://code.google.com/p/cascadia/source/browse/LICENSE [doc]: http://godoc.org/github.com/PuerkitoBio/goquery [index]: http://api.jquery.com/index/ -[i6]: https://github.com/PuerkitoBio/goquery/issues/6