diff --git a/goecs.go b/goecs.go index 1cf6e6f8..1705ff92 100644 --- a/goecs.go +++ b/goecs.go @@ -449,7 +449,7 @@ func handleLanguageSpecificSettings() { } } -func handleSignalInterrupt(sig chan os.Signal, startTime *time.Time, output *string, tempOutput string, uploadDone chan bool, outputMutex *sync.Mutex) { +func handleSignalInterrupt(sig chan os.Signal, startTime *time.Time, output *string, _ string, uploadDone chan bool, outputMutex *sync.Mutex) { select { case <-sig: if !finish { diff --git a/unlocktest/media_test.go b/unlocktest/media_test.go index 1ad06db0..4aee5a9f 100644 --- a/unlocktest/media_test.go +++ b/unlocktest/media_test.go @@ -6,5 +6,5 @@ import ( ) func Test(t *testing.T) { - fmt.Print("%s", MediaTest("zh")) + fmt.Printf("%s", MediaTest("zh")) } diff --git a/utils/utils_test.go b/utils/utils_test.go index 58fbe18e..3b8cedc3 100644 --- a/utils/utils_test.go +++ b/utils/utils_test.go @@ -20,7 +20,7 @@ func TestBasicsAndSecurityCheck(t *testing.T) { timeout := 3 * time.Second result := CheckPublicAccess(timeout) if result.Connected { - fmt.Print("✅ 本机有公网连接,类型: %s\n", result.StackType) + fmt.Printf("✅ 本机有公网连接,类型: %s\n", result.StackType) } else { fmt.Println("❌ 本机未检测到公网连接") }