MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / slug

Function slug

atomic-canonical/src/lift.rs:320–322  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

318}
319
320fn slug(s: &str) -> String {
321 s.to_lowercase()
322}
323
324fn require_str(fm: &Map<String, Value>, key: &str) -> Result<String> {
325 opt_str(fm, key).ok_or_else(|| CanonicalError::Lift(format!("frontmatter missing '{key}'")))

Callers 1

lift_intentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected