Expand description
§OS Identifier
OS Identifier resolves product / release names of operating systems used by endoflife.date into canonical names.
use os_identifier::OS;
fn main() {
let os = OS::parse("windows-11-24h2-w").unwrap();
assert_eq!(os.vendor(), String::from("Microsoft"));
assert_eq!(os.product(), String::from("Windows 11"));
assert!(os.to_string().contains(&String::from("Microsoft Windows 11 Pro 24H2")));
}