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

vweb: first step to revive it

This commit is contained in:
Alexander Medvednikov
2019-10-24 19:44:49 +03:00
parent 2032da7fe2
commit 892d1c6aab
7 changed files with 116 additions and 114 deletions

View File

@@ -3,7 +3,7 @@ module main
import vweb
const (
Port = 8082
port = 8082
)
struct App {
@@ -13,7 +13,9 @@ pub mut:
}
fn main() {
vweb.run<App>(Port)
mut app := App{}
vweb.run(app, port)
//vweb.run<App>(Port)
}
pub fn (app mut App) init() {