vito/yagnats — pull request #1 by lukebakken (2013-06-27 18:36:38+00:00)
Title: Change some syntax. Probably due to having an older go compiler.

I'm using the Altoros vagrant installer and was running into the "deadlock in the gorouter" issue so I thought I'd update to the latest gorouter code (and submodules). When trying to compile using this go version ...

```
vagrant@precise64:/vagrant/gorouter$ ./bin/go version
go version go1.0.3
```

I would get the following syntax errors. Once I made the changes in this PR, the program compiled and appears to be running OK. I'm not expecting this PR to be merged, but I thought I'd bring it to your attention. Should the Altoros cf-vagrant-installer code or other code be updated to use a later version of `go`?

Thanks! Luke

```
vagrant@precise64:/vagrant/gorouter$ ./bin/go install router/router
# github.com/vito/yagnats
src/github.com/vito/yagnats/packets.go:108: syntax error: unexpected comma
src/github.com/vito/yagnats/packets.go:115: syntax error: unexpected comma
src/github.com/vito/yagnats/packets.go:133: syntax error: unexpected comma
src/github.com/vito/yagnats/packets.go:140: syntax error: unexpected comma
vagrant@precise64:/vagrant/gorouter$ vim src/github.com/vito/yagnats/packets.go
vagrant@precise64:/vagrant/gorouter$ ./bin/go install router/router
# github.com/vito/yagnats
src/github.com/vito/yagnats/packets.go:104: syntax error: unexpected string literal
src/github.com/vito/yagnats/packets.go:120: syntax error: unexpected semicolon or newline
vagrant@precise64:/vagrant/gorouter$ vim src/github.com/vito/yagnats/packets.go
vagrant@precise64:/vagrant/gorouter$ ./bin/go install router/router
# github.com/vito/yagnats
src/github.com/vito/yagnats/client.go:34: function ends without a return statement
src/github.com/vito/yagnats/connection.go:64: function ends without a return statement
src/github.com/vito/yagnats/packets.go:80: function ends without a return statement
src/github.com/vito/yagnats/packets.go:102: function ends without a return statement
src/github.com/vito/yagnats/packets.go:117: function ends without a return statement
src/github.com/vito/yagnats/parser.go:88: function ends without a return statement
vagrant@precise64:/vagrant/gorouter$ vim src/github.com/vito/yagnats/packets.go
vagrant@precise64:/vagrant/gorouter$ ./bin/go install router/router
# github.com/vito/yagnats
src/github.com/vito/yagnats/client.go:34: function ends without a return statement
src/github.com/vito/yagnats/connection.go:64: function ends without a return statement
src/github.com/vito/yagnats/packets.go:80: function ends without a return statement
src/github.com/vito/yagnats/packets.go:102: function ends without a return statement
src/github.com/vito/yagnats/packets.go:117: function ends without a return statement
src/github.com/vito/yagnats/parser.go:88: function ends without a return statement
```