This commit is contained in:
oneao committed 2025-08-08 17:22:22 +08:00
1 parent 63b6d835ab
commit a804d3f2a5
5 files changed
+24 -2

No files matched your search

Whitespace-only changes.
+1 -1
View File
@@ -1,3 +1,3 @@
module base-farmework module base-framework
go 1.24 go 1.24
@@ -0,0 +1,4 @@
package app
func RunServer() {
}
@@ -0,0 +1,8 @@
package httpx
import (
"net/http"
)
type HandlerFunc func(http.ResponseWriter, *http.Request)
type MiddlewareFunc func(HandlerFunc) HandlerFunc
+11 -1
View File
@@ -91,7 +91,17 @@ go env -w GOPATH="D:\devtool\golang\gopath"
![image-20250731132738448](./assets/%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/image-20250731132738448.png) ![image-20250731132738448](./assets/%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE/image-20250731132738448.png)
# GoLand创建项目 # 修改 module 名称
## GoLand
1. 打开 `go.mod` 文件。
2. 在 `module base-farmework` 上右键,选择 `Refactor` → `Rename`,或按快捷键 `Shift + F6`。
3. 修改为 `base-framework`。
4. 然后 Goland 会提示:“是否更新项目中的所有引用”,点击 **Yes / Do Refactor**。
5. 等待 Goland 自动重写所有 `import "base-farmework/..."` 为 `import "base-framework/..."`。