1
0
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:
wdvxdr 2021-07-28 19:29:48 +08:00
parent 0be4c79d2c
commit a3906a5d33
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
9 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -1,3 +1,4 @@
//go:build (!arm && !arm64 && !amd64 && !386) || race
// +build !arm,!arm64,!amd64,!386 race
package codec

View File

@ -1,3 +1,4 @@
//go:build !windows && !linux && !darwin
// +build !windows,!linux,!darwin
package codec

View File

@ -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:

View File

@ -1,4 +1,5 @@
//+build !windows
//go:build !windows
// +build !windows
package global

View File

@ -1,4 +1,5 @@
//+build windows
//go:build windows
// +build windows
package global

View File

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package terminal

View File

@ -1,3 +1,4 @@
//go:build windows
// +build windows
package terminal

View File

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package update