Skip to main content

create_with_prefix

Function create_with_prefix 

Source
pub fn create_with_prefix(prefix: &str) -> String
Expand description

Create a slug with a custom prefix.

ยงExamples

use vtcode_commons::slug;

let slug = slug::create_with_prefix("plan");
// Returns something like "plan-gentle-harbor"