valval
valval copied to clipboard
The fastest web framework in V language (vlang)
Environment: V 0.1.30 1ee5764 CentOS Linux release 8.2.2004 x86_64 V is compiled from sources. When trying to run Valval example from https://github.com/valvalio/valval/blob/master/example/example.v Getting plenty of errors. Among them: ``` ~/.vmodules/valval/valval.v:200:2:...
- 老调重弹:去掉 `register()`。还没人用 V 和 valval,真没必要在这个阶段考虑向后兼容的问题。 - route 的部分,是否将 http method 从 url 里剥离出来?现在将 http method 直接写进了 url 里,导致在处理的时候还要从字符串里剥离出 http method,多了一个字符串处理的工作。 ``` app.route('POST:/book', function3) // http://127.0.0.1/book by POST app.route('DELETE:/book', function4)...
error: const names cannot contain uppercase letters, use snake_case instead 11 | 12 | const ( 13 | VERSION = '0.1.4' | ~~~~~~~ 14 | V_VERSION = '0.1.24' 15 |...