feat(T-001): 初始化 go 模块 + go-app 最小可运行页面
- go.mod:module lingo,依赖 go-app v10.1.11 - main.go:go-app 装配入口;init() 注册路由(Handler 仅为已注册路由返回 app shell),newHandler() 抽出便于测试,main() 起 http 服务 - main_test.go:in-process httptest 冒烟测试,验证根路径 200 + home 组件预渲染 + wasm 引导脚本注入 - .gitignore:忽略 /bin/ 构建产物 - 06-tasks:T-001 标 DONE;current-state 更新为 Phase 0 进行中、下一任务 T-002 验证:gofmt 干净 · go vet 通过 · go test 通过 · GOOS=js GOARCH=wasm go build 通过 · go build 通过 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,9 @@ go.work.sum
|
||||
# 前端构建产物
|
||||
*.wasm
|
||||
|
||||
# 后端构建产物
|
||||
/bin/
|
||||
|
||||
# 设计参考图(第三方截图,仅本地参考,不入库)
|
||||
/design_images/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user