mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
style: go1.17 fmt ./...
This commit is contained in:
parent
0be4c79d2c
commit
a3906a5d33
@ -1,3 +1,4 @@
|
||||
//go:build (linux || (windows && !arm) || darwin) && (386 || amd64 || arm || arm64) && !race
|
||||
// +build linux windows,!arm darwin
|
||||
// +build 386 amd64 arm arm64
|
||||
// +build !race
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build (!arm && !arm64 && !amd64 && !386) || race
|
||||
// +build !arm,!arm64,!amd64,!386 race
|
||||
|
||||
package codec
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build !windows && !linux && !darwin
|
||||
// +build !windows,!linux,!darwin
|
||||
|
||||
package codec
|
||||
|
@ -30,7 +30,7 @@ func EnsureBool(p interface{}, defaultVal bool) bool {
|
||||
if !j.Exists() {
|
||||
return defaultVal
|
||||
}
|
||||
switch j.Type {
|
||||
switch j.Type { // nolint
|
||||
case gjson.True:
|
||||
return true
|
||||
case gjson.False:
|
||||
|
@ -1,4 +1,5 @@
|
||||
//+build !windows
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package global
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
//+build windows
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package global
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package terminal
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package terminal
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package update
|
||||
|
Loading…
x
Reference in New Issue
Block a user