1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: remove unused selective imports (#8595)

This commit is contained in:
zakuro
2021-02-07 11:58:43 +09:00
committed by GitHub
parent cd4f7101f7
commit 9f59b04e86
4 changed files with 45 additions and 17 deletions

View File

@ -865,8 +865,12 @@ You can also import specific functions and types from modules directly:
```v
import os { input }
import crypto.sha256 { sum }
import time { Time }
fn main() {
// read text from stdin
name := input('Enter your name: ')
println('Hello, $name!')
}
```
Note: This is not allowed for constants - they must always be prefixed.