1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! # codegraph-go
//!
//! Go parser for CodeGraph - extracts code entities and relationships from Go source files.
//!
//! ## Features
//!
//! - Parse Go source files
//! - Extract functions, structs, interfaces, and packages
//! - Track relationships (calls, imports, interface implementations)
//! - Full integration with codegraph-parser-api
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use codegraph_go::GoParser;
//! use codegraph_parser_api::CodeParser;
//! use codegraph::CodeGraph;
//! use std::path::Path;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut graph = CodeGraph::in_memory()?;
//! let parser = GoParser::new();
//!
//! let file_info = parser.parse_file(Path::new("main.go"), &mut graph)?;
//! println!("Parsed {} functions", file_info.functions.len());
//! # Ok(())
//! # }
//! ```
// Re-export parser-api types for convenience
pub use ;
// Export the Go parser implementation
pub use GoParser;