Skip to main content

get_from_ext

Function get_from_ext 

Source
pub fn get_from_ext(ext: &str) -> Option<LANG>
Expand description

Detects the language associated to the input file extension.

ยงExamples

use big_code_analysis::get_from_ext;

let ext = "rs";

get_from_ext(ext).unwrap();