]> source.dussan.org Git - gitea.git/commitdiff
Make gitea, gitea-vet future-proof (#18361)
authorGusted <williamzijl7@hotmail.com>
Sat, 22 Jan 2022 21:59:34 +0000 (21:59 +0000)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 21:59:34 +0000 (21:59 +0000)
* Make gitea, gitea-vet future-proof

- Ref: https://gitea.com/gitea/gitea-vet/pulls/18

* Correct order

Co-authored-by: zeripath <art27@cantab.net>
CONTRIBUTING.md
modules/json/json.go

index 624896bbaacd22153a5779d0eb84a500859c6260..b9de6b69970c2a7b491e731a90c226f68e6c8bcb 100644 (file)
@@ -141,8 +141,8 @@ For imports you should use the following format (_without_ the comments)
 ```go
 import (
   // stdlib
-  "encoding/json"
   "fmt"
+  "math"
 
   // local packages
   "code.gitea.io/gitea/models"
index 1cbb6582610df109b87d523fe2ad47e08824d18f..3afa86023c6f84c5005f0a60921b7ef2569ed9e8 100644 (file)
@@ -4,6 +4,7 @@
 
 package json
 
+// Allow "encoding/json" import.
 import (
        "bytes"
        "encoding/binary"