Permalink
Browse files

update to Go 1

  • Loading branch information...
1 parent 2a50747 commit aa138a6601c7fccc13f08e3c834cdbe98f1e60c8 @carloscm committed Mar 29, 2012
Showing with 20,683 additions and 26,614 deletions.
  1. +2 −1 .gitignore
  2. +21 −7 README.md
  3. +12,374 −15,875 src/cassandra/Cassandra.go
  4. +6,095 −8,539 src/cassandra/ttypes.go
  5. +298 −298 src/gossie/connection.go
  6. +125 −125 src/gossie/connection_test.go
  7. +487 −487 src/gossie/query.go
  8. +447 −447 src/gossie/struct.go
  9. +261 −262 src/gossie/struct_test.go
  10. +573 −573 src/gossie/types.go
View
@@ -1 +1,2 @@
-*.6
+*.6
+pkg/
View
@@ -7,18 +7,32 @@ Gossie is a Go library with a low level wrapper for the Cassandra 1.0 Thrift bin
The official Apache Thrift libraries for Go are outdated and buggy. For now the active development happens in thrift4go:
https://github.com/pomack/thrift4go
-Install from the tip of master, make inside thrift4go/lib/go for installing the Thrift Go library.
-
-Once Go 1.0 is released the author will submit a new version of the Go Thrift libraries/generator to Apache.
-
+Installing thrift4go under GOPATH in Go 1:
+```
+1) cd lib/go/src
+2) cp -R thrift $GOPATH/src
+3) go install thrift
+```
# Installing
There is no need to generate a Cassandra Thrift biding, I am providing one with Gossie (and the whole point is not to have to use it!)
-I am using godag, a "go command"-like wrapper for compiling/linking/etc so there is no Makefile in Gossie. I do not plan on providing one, and Go 1.0 would make it obsolete anyway.
+For application usage copy the sources to your GOPATH/src and issue a go install to build and copy the libraries:
+
+```
+1) cp -R src/* $GOPATH/src
+2) go install cassandra gossie
+```
+
+If you want to fork and do development on Gossie itself the main command you need to run is something like (from the root of the Gossie folder):
-Gossie is written in Go r60.3 for now. I am waiting for the official Go 1.0 release to port it.
+```
+# locally install inside a pkg folder the depedencies, ie the cassandra bindings
+GOPATH=$GOPATH:`pwd` go test -i gossie
+# actually build and run the gossie tests
+GOPATH=$GOPATH:`pwd` go test gossie
+```
# Running the tests
@@ -53,7 +67,7 @@ The low level interface is based on passing []byte values for everything, mirror
### Struct maping
-The first part of the high level Gossie interface is the Map/Unmap functions. These functions allow to convert Go structs into Row-s, and they have support of advanced features like comparators or overriding column names and types.
+The first part of the high level Gossie interface is the Map/Unmap functions. These functions allow to convert Go structs into Row-s, and they have support of advanced features like composites or overriding column names and types.
```Go
/*
Oops, something went wrong.

0 comments on commit aa138a6

Please sign in to comment.