Delyan Angelov
615e74d341
vlib: reduce false positive matches for ///
, cleanup commented code
2025-03-08 17:47:13 +02:00
Delyan Angelov
801600c0c7
examples,io: add sha256sum_with_io_cp.v, make the size of the buffer used by io.cp parametrisable ( #23585 )
2025-01-26 15:44:15 +02:00
Delyan Angelov
e03bd3f803
io: make buffered_writer_test.v more robust
2024-09-26 08:45:13 +03:00
Einar Hjortdal
64d1770cf1
io: add a BufferedWriter and supporting methods ( #22265 )
2024-09-22 15:57:46 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183 ) ( #22185 )
2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields ( #22025 )
2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line ( #22016 )
2024-08-09 14:55:58 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields ( #21995 )
2024-08-05 20:23:39 +03:00
Turiiya
a7cf1ad7d5
io: cleanup prefix_and_suffix/1 util function ( #21562 )
2024-05-25 03:46:34 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module ( #21183 )
2024-04-12 13:53:02 +03:00
Delyan Angelov
f172a040ef
ci: improve test robustness on windows ( #21116 )
2024-03-28 07:29:17 +02:00
Leron Gray
54da256b9f
io.string_reader: fix needs_fill_until check ( #21005 )
2024-03-13 14:40:29 +02:00
Leron Gray
d6236e1052
io.reader: make read_all constants public ( #20997 )
2024-03-12 08:35:22 +02:00
Casper Küthe
d8c4a84f71
io: add a string_reader
submodule ( #20893 )
2024-02-27 09:38:30 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform ( #20792 )
2024-02-12 12:38:47 +02:00
syrmel
754c83a8ac
io: allow BufferedReader.read_line() to accept custom line delimiters ( #20655 )
2024-01-26 11:37:30 +02:00
Pierre Curto
14c2e4c679
io: ensure BufferedReader.read_line() returns io.Eof
, instead of error('none')
( #20619 )
2024-01-23 16:38:03 +02:00
Casper Küthe
08189d649c
vweb2 ( #19997 )
2023-12-09 08:07:51 +03:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 ( #20095 )
2023-12-05 13:56:59 +02:00
Alexander Medvednikov
f09826e928
all: unwrap const() blocks
2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax
2023-11-15 16:16:01 +11:00
Turiiya
e465f7490c
tests: cleanup legacy temp path ( #19716 )
2023-10-31 15:16:19 +02:00
Turiiya
9051ac8921
all: fix typos ( #19634 )
2023-10-23 21:21:15 +03:00
yuyi
17000ef7b6
checker: check option fn returning error ( fix #17423 ) ( #17438 )
2023-03-02 15:49:50 +02:00
Nahua
21b17fe234
io: add missing documentation and edit existing ones ( #17105 )
2023-01-25 22:03:20 +02:00
Keito Tobichi
d5b9f7d026
io: fix typos ( fix #16839 ) ( #16840 )
2023-01-02 20:20:52 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
Delyan Angelov
f427a5241a
os,tools: add os.vtmp_dir()
...
Use it to consistently place all temporary files created by tests in a overridable folder specific to the user, that is easy to cleanup later.
NOTE: os.temp_dir() on macos returns `/tmp`, and using `/tmp/v` is a problem when multiple unix users are trying to access/create/write to it.
2022-11-03 10:19:51 +02:00
Alexander Medvednikov
c6158e4519
all: remove unnecessary IError() casts
2022-10-28 19:08:30 +03:00
Delyan Angelov
2083e6b04c
os: cleanup APIs returning !bool
to either return !
or bool
( #16111 )
2022-10-20 13:56:06 +03:00
yuyi
f6844e9766
all: change optional to result of io ( #16075 )
2022-10-16 09:28:57 +03:00
Vincenzo Palazzo
b01f71d9da
io: migrate the Reader
API to Result
instead of Option
( #15229 )
2022-08-08 02:33:25 +03:00
yuyi
de136f6baf
checker: improve pub struct check ( fix #14446 ) ( #14777 )
2022-06-19 17:42:22 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! ( #14366 )
2022-05-13 06:56:21 +03:00
Ikko Ashimine
56a3539ea9
io: fix typo in readerwriter.v ( #14060 )
...
seperate -> separate
2022-04-17 17:40:14 +03:00
Alexander Medvednikov
fb192d949b
all: replace []byte with []u8
2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c
all: byte => u8
2022-04-15 14:58:56 +03:00
Nick Treleaven
7231a3f135
vlib: add mut
for the first parameter of builtin.copy, arrays.copy and crypto ( #13702 )
2022-03-09 20:26:00 +02:00
Subhomoy Haldar
114a341f5f
rand: simplify rand.PRNG, move to optional types for error handling ( #13570 )
2022-02-23 12:36:14 +02:00
Tim Basel
9d0a5942ac
builtin: change IError msg
and code
to methods + fix vlib, add a deprecation notice for the old usages ( #13041 )
2022-02-11 15:52:33 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules ( #13034 )
2022-01-05 18:06:08 +02:00
lydiandy
2070839722
io: pub the RandomReader interface ( #12222 )
2021-10-18 10:51:36 +03:00
lydiandy
98b2bdb410
io: cleanup ReaderWriter interface ( #12218 )
2021-10-17 19:39:51 +03:00
Alexander Ivanov
0386f2bbea
checker: add an interface check for mutability, fixes #1081 , fixes #7038 ( #11963 )
2021-10-11 15:41:31 +03:00
Delyan Angelov
4a0d00fb30
io.util: simplify random number generation in util.v
2021-09-23 14:20:39 +03:00
Daniel Däschle
b63ec8fbcf
checker: require params
attribute to use struct as keyword arguments in function ( #11135 )
2021-09-14 00:05:30 +03:00
Alexander Medvednikov
f731060caf
all: update chmod/chdir usages
2021-08-28 10:23:01 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions ( #11035 )
2021-08-04 12:44:41 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init ( #10842 )
2021-07-20 11:17:08 +03:00
Delyan Angelov
1086b4ac5e
io: mark the mutability requirements of the Writer interface explicitly; swap the io.cp/2 parameter order to be like os.cp/2 ( #10091 )
2021-05-13 13:06:42 +03:00