-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vweb C error when trying to run the following code #15565
Comments
You might want to change your code into module main
import vweb
struct App {
vweb.Context
}
fn main() {
vweb.run(&App{}, 8083)
}
pub fn (mut app App) index() vweb.Result {
println("request successful")
return app.text("test")
} to anyone: please correct me if I'm wrong. Here's what I understand about the above code:
The code will compile and give the expected response when you send a request to |
this works, thanks! just reported that, because the compiler told me to do so :-) |
My pleasure. I think we can close this issue, no? |
yes, we can! Thanks! |
I wouldn't close this issue. C errors should be fixed! Or @floscodes you can close this issue and create a new one with bug label. |
Ok, then I will leave it open. |
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg server.v
What did you expect to see?
the server responding with "test"
What did you see instead?
The text was updated successfully, but these errors were encountered: