mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make gitea, gitea-vet future-proof (#18361)
* Make gitea, gitea-vet future-proof - Ref: https://gitea.com/gitea/gitea-vet/pulls/18 * Correct order Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		@@ -141,8 +141,8 @@ For imports you should use the following format (_without_ the comments)
 | 
				
			|||||||
```go
 | 
					```go
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
  // stdlib
 | 
					  // stdlib
 | 
				
			||||||
  "encoding/json"
 | 
					 | 
				
			||||||
  "fmt"
 | 
					  "fmt"
 | 
				
			||||||
 | 
					  "math"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // local packages
 | 
					  // local packages
 | 
				
			||||||
  "code.gitea.io/gitea/models"
 | 
					  "code.gitea.io/gitea/models"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
package json
 | 
					package json
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Allow "encoding/json" import.
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"bytes"
 | 
						"bytes"
 | 
				
			||||||
	"encoding/binary"
 | 
						"encoding/binary"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user