mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-07 20:45:53 +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 linux windows,!arm darwin
|
||||||
// +build 386 amd64 arm arm64
|
// +build 386 amd64 arm arm64
|
||||||
// +build !race
|
// +build !race
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build (!arm && !arm64 && !amd64 && !386) || race
|
||||||
// +build !arm,!arm64,!amd64,!386 race
|
// +build !arm,!arm64,!amd64,!386 race
|
||||||
|
|
||||||
package codec
|
package codec
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows && !linux && !darwin
|
||||||
// +build !windows,!linux,!darwin
|
// +build !windows,!linux,!darwin
|
||||||
|
|
||||||
package codec
|
package codec
|
||||||
|
@ -30,7 +30,7 @@ func EnsureBool(p interface{}, defaultVal bool) bool {
|
|||||||
if !j.Exists() {
|
if !j.Exists() {
|
||||||
return defaultVal
|
return defaultVal
|
||||||
}
|
}
|
||||||
switch j.Type {
|
switch j.Type { // nolint
|
||||||
case gjson.True:
|
case gjson.True:
|
||||||
return true
|
return true
|
||||||
case gjson.False:
|
case gjson.False:
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build !windows
|
//go:build !windows
|
||||||
|
// +build !windows
|
||||||
|
|
||||||
package global
|
package global
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build windows
|
//go:build windows
|
||||||
|
// +build windows
|
||||||
|
|
||||||
package global
|
package global
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package terminal
|
package terminal
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build windows
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package terminal
|
package terminal
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package update
|
package update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user