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

View File

@@ -1,11 +1,12 @@
package ogtags
import (
"golang.org/x/net/html"
"net/url"
"runtime"
"strings"
"testing"
"golang.org/x/net/html"
)
func BenchmarkGetTarget(b *testing.B) {

View File

@@ -1,11 +1,12 @@
package ogtags
import (
"golang.org/x/net/html"
"net/url"
"strings"
"testing"
"unicode/utf8"
"golang.org/x/net/html"
)
// FuzzGetTarget tests getTarget with various inputs

View File

@@ -170,9 +170,9 @@ func (b *BotConfig) Valid() error {
}
type ChallengeRules struct {
Algorithm string `json:"algorithm"`
Difficulty int `json:"difficulty"`
ReportAs int `json:"report_as"`
Algorithm string `json:"algorithm,omitempty" yaml:"algorithm,omitempty"`
Difficulty int `json:"difficulty,omitempty" yaml:"difficulty,omitempty"`
ReportAs int `json:"report_as,omitempty" yaml:"report_as,omitempty"`
}
var (