From 39b6515af79985aaa28ea6dfd0460dab91121a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=93=B6=E5=86=9B?= Date: Sun, 2 Aug 2026 01:35:14 +0800 Subject: [PATCH] no message --- .idea/.gitignore | 10 ++++++++++ .idea/golang.iml | 9 +++++++++ .vscode/launch.json | 7 +++++++ 1.go | 11 +++-------- 4 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/golang.iml create mode 100644 .vscode/launch.json diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..f6906f2 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# 已忽略包含查询文件的默认文件夹 +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/golang.iml b/.idea/golang.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/golang.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f980ab9 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,7 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [] +} \ No newline at end of file diff --git a/1.go b/1.go index f46556c..a3dd973 100644 --- a/1.go +++ b/1.go @@ -1,12 +1,7 @@ package main -import ( - "fmt" - "syscall" -) + +import "fmt" func main() { - // 在 main 函数最开始执行,将控制台输出编码设置为 UTF-8 - syscall.MustLoadDLL("kernel32").MustFindProc("SetConsoleOutputCP").Call(65001) - fmt.Println("Hello, Go") + fmt.Println("Hello, World!") } -