lxn/go-pgsql — Issue #8: Directory layout
Author: bmatsuo
Created: 2011-11-01 08:26:26+00:00
State: open

I just start using pgsql and I like it. Good functionality and it seems to be pretty well documented. So thank you for that =)

But I don't like the directory layout introduced in commit (6cf4313b72deb1f98a7eda9ce4da750d418f835c). It's really cumbersome when installed with `goinstall`, and in general it's a little more than necessary.

If installed with `goinstall`, the import path in Go source files is really complicated and hard to remember.

```go
import "github.com/lxn/go-pgsql/src/pkg/pgsql"
```
(It doesn't really make since to have a directory `/src/` in the import path either, because you're importing a binary file.)

The source files (in `/src/pkg/pgsql`) should be moved to `/pgsql`. It is the Go convention. So it gives a shorter, easy to remember import path.

```go
import "github.com/lxn/go-pgsql/pgsql"
```

I think the examples were good in the `/examples` directory. The project wouldn't be cluttered, imho.

Please consider this. I think its really annoying the way it is. But otherwise, thanks again for this package! And please keep up the great work!