Kaynağa Gözat

style: Run goimports on everything

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
Abhinav Gupta 5 yıl önce
ebeveyn
işleme
993ee50b3d
5 değiştirilmiş dosya ile 7 ekleme ve 11 silme
  1. +1
    -1
      README.md
  2. +1
    -3
      auth_test.go
  3. +1
    -2
      post_test.go
  4. +1
    -3
      user.go
  5. +3
    -2
      writeas.go

+ 1
- 1
README.md Dosyayı Görüntüle

@@ -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:

* Run `go fmt` on all updated .go files.
* Run `goimports` on all updated .go files.
* Document all exported structs and funcs.

## License


+ 1
- 3
auth_test.go Dosyayı Görüntüle

@@ -1,8 +1,6 @@
package writeas

import (
"testing"
)
import "testing"

func TestAuthentication(t *testing.T) {
dwac := NewDevClient()


+ 1
- 2
post_test.go Dosyayı Görüntüle

@@ -1,10 +1,9 @@
package writeas

import (
"testing"

"fmt"
"strings"
"testing"
)

func TestCreatePost(t *testing.T) {


+ 1
- 3
user.go Dosyayı Görüntüle

@@ -1,8 +1,6 @@
package writeas

import (
"time"
)
import "time"

type (
// AuthUser represents a just-authenticated user. It contains information


+ 3
- 2
writeas.go Dosyayı Görüntüle

@@ -3,13 +3,14 @@ package writeas

import (
"bytes"
"code.as/core/socks"
"encoding/json"
"fmt"
"github.com/writeas/impart"
"io"
"net/http"
"time"

"code.as/core/socks"
"github.com/writeas/impart"
)

const (


Yükleniyor…
İptal
Kaydet