Thanks for splitting the repository, but I'm reopening this because it seems you've moved more than really needed.
For example, there are exported structs and methods in internal/handlers/handlers.go. It is better to keep exported stuff out of a tree that starts with internal.
Suppose I want to write a Go program that interfaces with rushlink. I'm not interested in the binary (that's why the main package is now neatly defined in cmd/rushlink/), but I do want access to, for example, StoredPaste. It's counterintuitive (non-idiomatic) to import packages that have internal in their path, when the importing package is not part of rushlink.
Thanks for splitting the repository, but I'm reopening this because it seems you've moved more than really needed.
For example, there are exported structs and methods in `internal/handlers/handlers.go`. It is better to keep exported stuff out of a tree that starts with `internal`.
Suppose I want to write a Go program that interfaces with `rushlink`. I'm not interested in the binary (that's why the `main` package is now neatly defined in `cmd/rushlink/`), but I do want access to, for example, `StoredPaste`. It's counterintuitive (non-idiomatic) to import packages that have `internal` in their path, when the importing package is not part of `rushlink`.
Another thing `pkg/gobmarsh` has a `pkg/` too many. See https://golang.org/doc/effective_go.html#package-names for some hints on package names; _brevity_ is one of them.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Typically, the
mainpackage (which becomes an executable) is situated incmd/<executable name>:cmd/rushlink/.Ack. Do I also move all the other files there, or just the entrypoint (i.e.
rushlink.go)?Thanks for splitting the repository, but I'm reopening this because it seems you've moved more than really needed.
For example, there are exported structs and methods in
internal/handlers/handlers.go. It is better to keep exported stuff out of a tree that starts withinternal.Suppose I want to write a Go program that interfaces with
rushlink. I'm not interested in the binary (that's why themainpackage is now neatly defined incmd/rushlink/), but I do want access to, for example,StoredPaste. It's counterintuitive (non-idiomatic) to import packages that haveinternalin their path, when the importing package is not part ofrushlink.Another thing
pkg/gobmarshhas apkg/too many. See https://golang.org/doc/effective_go.html#package-names for some hints on package names; brevity is one of them.