Skip to content

Commit c6f0ae5

Browse files
committed
refactor: split api/handlers.go into focused files by concern
- handlers.go: struct, NewHandler, Register, shared helpers - handlers_search.go: search - handlers_graph.go: graph operations - handlers_tree.go: tree management - handlers_analysis.go: code analysis (definition, hover, call tree, etc.) - handlers_gtags.go: GNU Global - handlers_fileops.go: file ops, root management - handlers_include.go: include dependency graph
1 parent acf0c2e commit c6f0ae5

9 files changed

Lines changed: 1431 additions & 1364 deletions

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,14 @@ grepnavi/
341341
├── main.go # エントリーポイント・フラグ解析
342342
├── server.go # HTTP サーバー初期化
343343
├── api/
344-
│ └── handlers.go # REST API ハンドラ
344+
│ ├── handlers.go # 構造体・Register・共通ヘルパー
345+
│ ├── handlers_search.go # 検索
346+
│ ├── handlers_graph.go # グラフ操作
347+
│ ├── handlers_tree.go # ツリー管理
348+
│ ├── handlers_analysis.go # コード解析(定義・ホバー・コールツリー等)
349+
│ ├── handlers_gtags.go # GNU Global
350+
│ ├── handlers_fileops.go # ファイル操作・ルート管理
351+
│ └── handlers_include.go # インクルード依存グラフ
345352
├── graph/
346353
│ ├── model.go # データ構造(Node, Edge, Tree, ProjectFile)
347354
│ ├── store.go # プロジェクトファイルの読み書き・ノード/エッジ操作

0 commit comments

Comments
 (0)