use-go-identifier
ASCII-safe Go identifier primitives for RustUse.
Experimental
use-go-identifier is experimental while use-go remains below 0.3.0.
Example
use ;
let identifier = new?;
let exported = new?;
assert_eq!;
assert_eq!;
assert!;
# Ok::
Scope
- Ordinary ASCII-safe Go identifier validation.
- Exported identifiers that start with an uppercase ASCII letter.
- Unexported identifiers that start with a lowercase ASCII letter or underscore.
Non-goals
- Complete Unicode Go identifier validation.
- Keyword or predeclared identifier checks.
- Go source-code parsing.
Unicode-complete Go identifier validation is future work.
License
Licensed under either Apache-2.0 or MIT.