mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: run gitly
This commit is contained in:
parent
0455632b1f
commit
f879b3e221
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -870,6 +870,7 @@ jobs:
|
||||
git clone --depth 1 https://github.com/vlang/gitly
|
||||
cd gitly
|
||||
../v .
|
||||
./gitly -ci_run
|
||||
../v -autofree .
|
||||
cd ..
|
||||
|
||||
|
@ -100,7 +100,9 @@ struct MultiplePathAttributesError {
|
||||
}
|
||||
|
||||
// declaring init_server in your App struct is optional
|
||||
pub fn (ctx Context) init_server() {}
|
||||
pub fn (ctx Context) init_server() {
|
||||
eprintln('init_server() has been deprecated, please init your web app in `fn main()`')
|
||||
}
|
||||
|
||||
// declaring before_request in your App struct is optional
|
||||
pub fn (ctx Context) before_request() {}
|
||||
@ -275,7 +277,6 @@ interface DbInterface {
|
||||
// run_app
|
||||
[manualfree]
|
||||
pub fn run<T>(global_app &T, port int) {
|
||||
// x := global_app.clone()
|
||||
// mut global_app := &T{}
|
||||
// mut app := &T{}
|
||||
// run_app<T>(mut app, port)
|
||||
@ -287,7 +288,9 @@ pub fn run<T>(global_app &T, port int) {
|
||||
// conn: 0
|
||||
//}
|
||||
// app.init_server()
|
||||
// unsafe {
|
||||
// global_app.init_server()
|
||||
//}
|
||||
//$for method in T.methods {
|
||||
//$if method.return_type is Result {
|
||||
// check routes for validity
|
||||
|
Loading…
Reference in New Issue
Block a user