mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -10,7 +10,7 @@ const http_response = 'HTTP/1.1 200 OK\r\nContent-type: text/html\r\nContent-len
|
|||
fn main() {
|
||||
println('Starting webserver on http://localhost:${port}/ ...')
|
||||
mut pico := picoev.new(
|
||||
port: port
|
||||
port: port
|
||||
raw_cb: handle_conn
|
||||
)!
|
||||
pico.serve()
|
||||
|
@ -19,8 +19,8 @@ fn main() {
|
|||
fn handle_conn(mut pv picoev.Picoev, fd int, events int) {
|
||||
// setup a nonblocking tcp connection
|
||||
mut conn := &net.TcpConn{
|
||||
sock: net.tcp_socket_from_handle_raw(fd)
|
||||
handle: fd
|
||||
sock: net.tcp_socket_from_handle_raw(fd)
|
||||
handle: fd
|
||||
is_blocking: false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue