mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: fix failing v -W build-tools
and v -W build-examples
; run vfmt.
This commit is contained in:
parent
ea3d1405ee
commit
04095f4088
11 changed files with 22 additions and 21 deletions
|
@ -5,10 +5,10 @@ fn main() {
|
|||
// Make a new connection
|
||||
mut conn := net.dial_tcp('google.com:80') ?
|
||||
defer {
|
||||
conn.close() or { }
|
||||
conn.close() or {}
|
||||
}
|
||||
// Simple http HEAD request for a file
|
||||
conn.write_str('HEAD /index.html HTTP/1.0\r\n\r\n') ?
|
||||
conn.write_string('HEAD /index.html HTTP/1.0\r\n\r\n') ?
|
||||
// Read all the data that is waiting
|
||||
result := io.read_all(reader: conn) ?
|
||||
// Cast to string and print result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue