Skip to main content

is_valid_package

Function is_valid_package 

Source
pub fn is_valid_package(name: &str) -> bool
Expand description

Whether a string can be written after package and then imported.

Deliberately ASCII-only. Go itself allows a Unicode letter, but a package name that needs one is a worse problem for an adopter than the restriction is.