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
import (
hash.fnv1a
hash.wyhash
rand
time
)
import hash.fnv1a
import hash.wyhash
import rand
import time
fn main() {
sample_size := 10000000

View File

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

View File

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

View File

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

View File

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

View File

@ -1,9 +1,7 @@
import (
os
flag
scripting
vgit
)
import os
import flag
import scripting
import vgit
const (
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
// / code, instead of in embedded C ...
// /////////////////////////////////////////////////////////////////////
import (
os
benchmark
)
import os
import benchmark
const (
INNER_INDENT = ' '

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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