mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 15:07:53 +00:00
chore: create uri_identifier module in parser
This commit is contained in:
17
src/main.rs
17
src/main.rs
@@ -1,18 +1,5 @@
|
||||
use std::process::exit;
|
||||
|
||||
mod parser;
|
||||
|
||||
fn main() {
|
||||
let protocol = parser::get_uri_protocol("vmess://");
|
||||
match protocol {
|
||||
Some(parser::Protocols::Vless) => {
|
||||
println!("The protocol was Vless");
|
||||
}
|
||||
Some(_) => {
|
||||
println!("Some recognizable protocol")
|
||||
}
|
||||
None => {
|
||||
println!("The protocol is not supported");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
parser::parse("vmess://test");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user