Similar to writeas/writeas-cli#22, this change runs goimports on all files and changes the recommendation in the Contributing section to do the same.pull/12/head
@@ -63,7 +63,7 @@ func main() { | |||||
The library covers our usage, but might not be comprehensive of the API. So we always welcome contributions and improvements from the community. Before sending pull requests, make sure you've done the following: | The library covers our usage, but might not be comprehensive of the API. So we always welcome contributions and improvements from the community. Before sending pull requests, make sure you've done the following: | ||||
* Run `go fmt` on all updated .go files. | |||||
* Run `goimports` on all updated .go files. | |||||
* Document all exported structs and funcs. | * Document all exported structs and funcs. | ||||
## License | ## License | ||||
@@ -1,8 +1,6 @@ | |||||
package writeas | package writeas | ||||
import ( | |||||
"testing" | |||||
) | |||||
import "testing" | |||||
func TestAuthentication(t *testing.T) { | func TestAuthentication(t *testing.T) { | ||||
dwac := NewDevClient() | dwac := NewDevClient() | ||||
@@ -1,10 +1,9 @@ | |||||
package writeas | package writeas | ||||
import ( | import ( | ||||
"testing" | |||||
"fmt" | "fmt" | ||||
"strings" | "strings" | ||||
"testing" | |||||
) | ) | ||||
func TestCreatePost(t *testing.T) { | func TestCreatePost(t *testing.T) { | ||||
@@ -1,8 +1,6 @@ | |||||
package writeas | package writeas | ||||
import ( | |||||
"time" | |||||
) | |||||
import "time" | |||||
type ( | type ( | ||||
// AuthUser represents a just-authenticated user. It contains information | // AuthUser represents a just-authenticated user. It contains information | ||||
@@ -3,13 +3,14 @@ package writeas | |||||
import ( | import ( | ||||
"bytes" | "bytes" | ||||
"code.as/core/socks" | |||||
"encoding/json" | "encoding/json" | ||||
"fmt" | "fmt" | ||||
"github.com/writeas/impart" | |||||
"io" | "io" | ||||
"net/http" | "net/http" | ||||
"time" | "time" | ||||
"code.as/core/socks" | |||||
"github.com/writeas/impart" | |||||
) | ) | ||||
const ( | const ( | ||||