A better go code formatter, and now make fmt can run in Windows (#17684)

* go build / format tools
* re-format imports
This commit is contained in:
wxiaoguang 2021-11-17 20:34:35 +08:00 committed by GitHub
parent 29cc169d20
commit 750a8465f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
106 changed files with 731 additions and 42 deletions

View file

@ -12,7 +12,6 @@ import (
"encoding/hex"
"errors"
"fmt"
_ "image/jpeg" // Needed for jpeg support
"net/url"
"os"
"path/filepath"
@ -21,6 +20,8 @@ import (
"time"
"unicode/utf8"
_ "image/jpeg" // Needed for jpeg support
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/login"
"code.gitea.io/gitea/models/unit"
@ -39,7 +40,6 @@ import (
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt"
"xorm.io/builder"
"xorm.io/xorm"
)