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!") } -