pub fn get_hostname<S: Into<String>>( domain: S) -> Result<String, RustgenpassError>
Isolate the domain name of a URL with default config.
domain
use rustgenpass::get_hostname; let hostname = get_hostname("https://user:pass@www.example.com:4711/path/file.html"); assert_eq!("example.com", hostname.unwrap());