馃 The Definitive Gemini Protocol Toolkit
gemini
gemini-protocol
gemtext
parser
zero-dependency
toolkit
ast
converter
html
markdown
cli
networking
1//! This example demonstrates Germ's capabilities for parsing Gemini meta
2//! sections.
3
4fn main() {
5 // Parse Gemini meta section into a structured meta representation
6 let meta = germ::meta::Meta::from_string("text/gemini; hi=2; hi2=string=2");
7
8 // Debug view of the structured meta representation
9 println!("{:?}", meta);
10
11 // Convert the structured meta representation back to a string, identical to
12 // the original meta section
13 println!("{}", meta);
14
15 // The MIME type of the meta section
16 println!("{}", meta.mime());
17
18 // A debug view of the parameters of the meta section
19 println!("{:?}", meta.parameters());
20}