gomod-rs
A go.mod file parser with location information.
Implemented using nom and nom_locate.
No string copy/clone during parsing.
(except for interpreted strings, which yield Identifier::Interpreted(String) type)
Example Usage
Here is an example printing all requirements defined in a go.mod file, along with their locations and related contents.
use ;
let contents = r#"
"#;
let gomod = parse_gomod?;
gomod
.iter
.filter_map
.for_each;
Also see example/parse.rs.