style: reorder imports

This commit is contained in:
Jason Cameron
2025-06-13 16:28:30 -04:00
parent 44c9557676
commit 6e552c58c4
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
package ogtags package ogtags
import ( import (
"golang.org/x/net/html"
"net/url" "net/url"
"runtime" "runtime"
"strings" "strings"
"testing" "testing"
"golang.org/x/net/html"
) )
func BenchmarkGetTarget(b *testing.B) { func BenchmarkGetTarget(b *testing.B) {
+2 -1
View File
@@ -1,11 +1,12 @@
package ogtags package ogtags
import ( import (
"golang.org/x/net/html"
"net/url" "net/url"
"strings" "strings"
"testing" "testing"
"unicode/utf8" "unicode/utf8"
"golang.org/x/net/html"
) )
// FuzzGetTarget tests getTarget with various inputs // FuzzGetTarget tests getTarget with various inputs
+3 -3
View File
@@ -170,9 +170,9 @@ func (b *BotConfig) Valid() error {
} }
type ChallengeRules struct { type ChallengeRules struct {
Algorithm string `json:"algorithm"` Algorithm string `json:"algorithm,omitempty" yaml:"algorithm,omitempty"`
Difficulty int `json:"difficulty"` Difficulty int `json:"difficulty,omitempty" yaml:"difficulty,omitempty"`
ReportAs int `json:"report_as"` ReportAs int `json:"report_as,omitempty" yaml:"report_as,omitempty"`
} }
var ( var (