- 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>
8 lines
133 B
AMPL
8 lines
133 B
AMPL
module lingo
|
|
|
|
go 1.23.0
|
|
|
|
require github.com/maxence-charriere/go-app/v10 v10.1.11
|
|
|
|
require github.com/google/uuid v1.6.0 // indirect
|