1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

user modules + v install from vpm

This commit is contained in:
Alexander Medvednikov
2019-08-01 01:34:28 +02:00
parent d3c89273e8
commit a7e464fee9
5 changed files with 103 additions and 32 deletions

View File

@@ -32,7 +32,6 @@ pub fn (ctx Context) json(s string) {
ctx.conn.write('HTTP/1.1 200 OK
Content-Type: application/json
$h
$s
')
}
@@ -71,6 +70,7 @@ $html
}
pub fn run<T>(port int) {
println('Running vweb app on http://localhost:$port ...')
l := net.listen(port) or { panic('failed to listen') return }
for {
conn := l.accept() or {