v
v copied to clipboard
Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
**V version:** **OS:** **What did you do?** https://devbits.app/play/GGmC8FzzOxSI ``` module main fn test() { println('test') } fn test2() { println('test2') } fn main() { t1 := test t2 := test2...
select from Task where updated_at == nil ```v module main import db.sqlite [table: 'task'] struct Task { mut: id int [primary; sql: serial] a string updated_at string } fn main()...
# Example ```v module main import vweb import sqlite const ( http_port = 8081 ) struct App { vweb.Context } struct Task { mut: id u32 [primary; serial; sql: serial]...
Should solve https://discord.com/channels/592103645835821068/592114487759470596/1002632195921432676 and V panic: 'json' is not yet implemented. Please create a new issue at https://github.com/vlang/v/issues/new ```v module main [table: 'task'] struct Task { mut: id string [primary;...
Discord: https://discord.com/channels/592103645835821068/592114487759470596/1002639476499173476 **V doctor:** ``` OS: linux, Ubuntu 22.04 LTS Processor: 8 cpus, 64bit, little endian, 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz CC version: cc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 getwd:...
Today, select fields is not customizable. #### Suggestions ```v struct Module { id int [primary; sql: serial] a string b string c string } ``` ```v //1 result := sql...
**V version:** **OS:** **What did you do?** v up **What did you expect to see?** Update V **What did you see instead?** Error msg: branch master -> FETCH_HEAD fatal: refusing...
```v import strconv struct Bar { mut: c f64 } interface Speaker { speak() } // and it can be mut c &Bar for c.c = 99.33 and c =...
we can clearly know what's the obj type for reviewer
**V version:** **OS:** **What did you do?** https://devbits.app/play/GsQqm5mK2sn6 ``` module main struct Test { mut: val T tk string } struct Test1{ f fn(Test) } fn(t Test) val() T{ return...