3 ms·
Memcached's author (Brad Fitzpatrick) is a Go user, and wrote a memcache client for Go. Go has a bunch of good stuff surrounding SQL. I haven't used MySQL, per
by paddyforan 14y ago
Memcached's author (Brad Fitzpatrick) is a Go user, and wrote a memcache client for Go.
Go has a bunch of good stuff surrounding SQL. I haven't used MySQL, personally, so I can't comment on which MySQL driver is best, but I know YouTube uses Go for something related to MySQL, though I can't say for certain exactly what. http://code.google.com/p/vitess http://code.google.com/p/vitess
The goauth2 (http://code.google.com/p/goauth2 http://code.google.com/p/goauth2) library is written by Brad Fitzpatrick and Andrew Gerrand (two members of the Go team), and is stable.
Logging is great. Interfaces make it really, really flexible. I'm not sure what you mean by tracing. Stacktraces? Those are easy to retrieve: http://golang.org/pkg/runtime/debug/#Stack http://golang.org/pkg/runtime/debug/#Stack
- tptacek 14y agoWell, Go has a bunch of libraries for different SQL servers. I wouldn't go so far as to say it has lots of good SQL stuff; it's in approximately the same place as C is w.r.t. databases. Having to interface with complicated SQL is a reason not to use Go (but not an insurmountable one).
- paddyforan 14y agoI think it has lots of good SQL stuff just because I think it laid a nice foundation for developers to build SQL libraries on, and I think there's a lot of potential for using SQL in Go to get dramatically better in the next year or so. That said, I'm not an SQL expert or even very competent, so I'm probably not the best to comment on it--I just included it for the sake of addressing all the points. I would agree, though--working with SQL is the worst part of the software I'm currently writing in Go. I think that's more a praise of working with Go than a condemnation of its SQL support, though.
- burntsushi 14y ago> it's in approximately the same place as C is w.r.t. databases. I think the existence of a standardized interface like `database/sql` makes things strictly better. An anecdote: I started making a new web application using MySQL. As soon as I realized the error of my ways (not because of the driver), I swapped out a single import from the MySQL driver to the PostgreSQL driver, and everything continued to work as it did before. [EDIT] Anyone care to explain the down-votes?
- redler 14y agoThe downvotes are likely because they're reading your MySQL-to-Postgres anecdote as the firing of a shot in an unrelated battle many love to hate, if not a mild troll.
- burntsushi 14y agoAh, right. My bad. The folly is still fresh, and there is still a bit of pent-up rage that I hadn't made this discovery sooner.
- 4ad 14y agoBrad Fitzpatrick is not just a Go user, he is a core Go developer :-).
- paddyforan 14y agoYeah, I noted that later on in the comment. :)
- treeder 14y agoThere's also the mgo library for MongoDB which is probably one of the best Mongo libraries out there (even 10gen thinks so): http://labix.org/mgo http://labix.org/mgo And http://github.com/lib/pq http://github.com/lib/pq for Postgres.