mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
move http module to net.http
This commit is contained in:
committed by
Alexander Medvednikov
parent
6cee50afda
commit
63b70ddb06
@@ -19,6 +19,7 @@ struct FormatOptions {
|
||||
is_all bool
|
||||
is_worker bool
|
||||
is_debug bool
|
||||
is_noerror bool
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -44,6 +45,7 @@ fn main() {
|
||||
is_all: '-all' in args || '--all' in args
|
||||
is_worker: '-worker' in args
|
||||
is_debug: '-debug' in args
|
||||
is_noerror: '-noerror' in args
|
||||
}
|
||||
if foptions.is_verbose {
|
||||
eprintln('vfmt foptions: $foptions')
|
||||
@@ -104,6 +106,9 @@ fn main() {
|
||||
}
|
||||
if errors > 0 {
|
||||
eprintln('Encountered a total of: ${errors} errors.')
|
||||
if foptions.is_noerror {
|
||||
exit(0)
|
||||
}
|
||||
exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module main
|
||||
|
||||
import (
|
||||
http
|
||||
net.http
|
||||
os
|
||||
json
|
||||
filepath
|
||||
|
||||
Reference in New Issue
Block a user