Skip to main content

from_kebab_case

Function from_kebab_case 

pub fn from_kebab_case(s: &str) -> String
Expand description

Common key transformation: convert kebab-case to PascalCase.

ยงExamples

use noyalib::with::singleton_map_with::from_kebab_case;

assert_eq!(from_kebab_case("get-request"), "GetRequest");
assert_eq!(from_kebab_case("http-server"), "HttpServer");