cmd/tools: use same line imports too

pull/4602/head
Delyan Angelov 2020-04-26 09:32:05 +03:00
parent 3a59f5727c
commit b898970031
18 changed files with 60 additions and 96 deletions

View File

@ -1,11 +1,9 @@
module main module main
import ( import hash.fnv1a
hash.fnv1a import hash.wyhash
hash.wyhash import rand
rand import time
time
)
fn main() { fn main() {
sample_size := 10000000 sample_size := 10000000

View File

@ -2,10 +2,8 @@
// Use of this source code is governed by an MIT license // Use of this source code is governed by an MIT license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
import ( import os
os import time
time
)
fn main() { fn main() {
exe := os.executable() exe := os.executable()

View File

@ -16,14 +16,12 @@
module main module main
import ( import os
os import log
log import flag
flag import time
time import vweb
vweb import net.urllib
net.urllib
)
// git credentials // git credentials
const( const(

View File

@ -1,12 +1,10 @@
module testing module testing
import ( import os
os import term
term import benchmark
benchmark import sync
sync import v.pref
v.pref
)
pub struct TestMessageHandler { pub struct TestMessageHandler {
mut: mut:

View File

@ -1,9 +1,7 @@
import ( import os
os import flag
flag import scripting
scripting import vgit
vgit
)
const ( const (
tool_version = '0.0.3' tool_version = '0.0.3'

View File

@ -1,9 +1,7 @@
import ( import os
os import flag
flag import scripting
scripting import vgit
vgit
)
const ( const (
tool_version = '0.0.5' tool_version = '0.0.5'

View File

@ -7,10 +7,8 @@ module main
// / look & feel of the results is easy, since it is done in normal V // / look & feel of the results is easy, since it is done in normal V
// / code, instead of in embedded C ... // / code, instead of in embedded C ...
// ///////////////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////////////
import ( import os
os import benchmark
benchmark
)
const ( const (
INNER_INDENT = ' ' INNER_INDENT = ' '

View File

@ -1,9 +1,7 @@
module main module main
import ( import os
os import testing
testing
)
fn main() { fn main() {
args := os.args args := os.args

View File

@ -1,9 +1,7 @@
module main module main
import ( import os
os import testing
testing
)
fn main() { fn main() {
args := os.args args := os.args

View File

@ -8,9 +8,7 @@
// functionality is essentially the same. // functionality is essentially the same.
module main module main
import ( import os
os
)
struct Create { struct Create {
mut: mut:

View File

@ -2,13 +2,11 @@ module main
/* /*
QTODO QTODO
import ( import os
os import flag
flag import strings
strings import compiler
compiler import v.pref
v.pref
)
const ( const (
tool_version = '0.0.1' tool_version = '0.0.1'

View File

@ -1,12 +1,10 @@
module main module main
import ( import os
net.http import os.cmdline
os import net.http
os.cmdline import json
json import vhelp
vhelp
)
const ( const (
default_vpm_server_urls = ['https://vpm.best', 'https://vpm.vlang.io'] default_vpm_server_urls = ['https://vpm.best', 'https://vpm.vlang.io']

View File

@ -4,13 +4,11 @@
module main module main
import ( import os
os import term
term import readline
readline import os.cmdline
os.cmdline import v.util
v.util
)
struct Repl { struct Repl {
mut: mut:

View File

@ -1,9 +1,7 @@
module main module main
import ( import os
os import v.pref
v.pref
)
fn main() { fn main() {
vexe := pref.vexe_path() vexe := pref.vexe_path()

View File

@ -1,9 +1,7 @@
module main module main
import ( import os
os import v.pref
v.pref
)
fn main() { fn main() {
$if windows { $if windows {

View File

@ -1,11 +1,9 @@
module main module main
import ( import os
os import testing
testing import benchmark
benchmark import v.pref
v.pref
)
fn main() { fn main() {
args := os.args args := os.args

View File

@ -1,9 +1,7 @@
module main module main
import ( import os
os import testing
testing
)
const ( const (
known_failing_exceptions = ['./examples/vweb/vweb_example.v', known_failing_exceptions = ['./examples/vweb/vweb_example.v',

View File

@ -1,10 +1,8 @@
module main module main
import ( import os
os import v.pref
v.pref import v.util
v.util
)
fn main() { fn main() {
vroot := os.dir(pref.vexe_path()) vroot := os.dir(pref.vexe_path())