The use
declaration
The use
declaration can be used to bind a full path to a new name, for easier
access. It is often used like this:
You can use the as
keyword to bind imports to a different name:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
use
declarationThe use
declaration can be used to bind a full path to a new name, for easier
access. It is often used like this:
You can use the as
keyword to bind imports to a different name: