mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-29 03:22:42 +00:00
style: reorder imports
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user