1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib
Hitalo Souza d7c244e5ec
x.json2: support time.Time values in encode (#16643)
* feat: json2 time.Time encode

* refactor: best var name

* fix: use 'RFC 3339' as pattern in json encode

* fix: unused var for unaliased_typ

* fix: improve test

* use the clearer test after V ad24c22, that made format_rfc3339 more stable

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2022-12-11 16:54:28 +02:00
..
arrays arrays: add map_of_counts/1, map_of_indexes/1 as well as index_of_first/2, index_of_last/2 utilities (#16618) 2022-12-09 00:37:07 +02:00
benchmark vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
bitfield all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
builtin builtin: fix bug with string.split_into_lines, when lines have extra CR's at their end (#16620) 2022-12-09 09:15:50 +02:00
cli vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
clipboard fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
compress vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
context vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
crypto all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
datatypes all: replace generic '<>' with '[]' in error messages and comments (#16571) 2022-12-02 09:22:48 +02:00
dl vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
dlmalloc
encoding all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
eventbus vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
flag vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
fontstash
gg gg: always use 4 channels in init_sokol_image (#16564) 2022-12-01 18:54:37 +03:00
gx vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
hash all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
io vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
js all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
json all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
log vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
maps all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
math math: remove the deprecated math.mathutil module too 2022-11-29 14:56:40 +02:00
mssql vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
mysql orm,sqlite,mysql,pg: cleanup import v.ast, using typeof[Type]() 2022-12-07 13:40:46 +02:00
net all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
orm orm: declare missing functions to handle literal types (#16627) 2022-12-09 20:34:34 +02:00
os all: fix dependant->dependent typos, cleanup comments 2022-12-02 12:51:10 +02:00
pg orm,sqlite,mysql,pg: cleanup import v.ast, using typeof[Type]() 2022-12-07 13:40:46 +02:00
picoev vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
picohttpparser
rand all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
readline vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
regex regex: make match_string() receiver immutable 2022-12-10 13:03:42 +03:00
runtime
semver vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
sokol sokol: fix v -Wimpure-v examples/2048/ 2022-11-29 14:42:45 +02:00
sqlite orm,sqlite,mysql,pg: cleanup import v.ast, using typeof[Type]() 2022-12-07 13:40:46 +02:00
stbi gg: always use 4 channels in init_sokol_image (#16564) 2022-12-01 18:54:37 +03:00
strconv strconv: add test_atof_converter to the tests, as suggested by the code review 2022-11-21 07:41:41 +02:00
strings vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
sync sync: fix compilation of V on m1 with tcc 2022-12-02 23:17:46 +02:00
szip vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
term term: add format_esc/1 (#16574) 2022-12-03 14:01:39 +02:00
time time: add more UTC/local time conversion functions, make Time.format_rfc3339 more stable 2022-12-11 13:34:01 +02:00
toml all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
v checker: fix generic fn returning result (#16646) 2022-12-11 12:34:58 +02:00
vweb all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
x x.json2: support time.Time values in encode (#16643) 2022-12-11 16:54:28 +02:00
.vdocignore
README.md

vlib Documentation

vlib is the term for all modules included by default with V and maintained as part of the V source code repository.

Some included modules depend on third party libraries, and these are kept separate in the thirdparty directory at the root level of the source repository.