1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

40 Commits

Author SHA1 Message Date
2070839722 io: pub the RandomReader interface (#12222) 2021-10-18 10:51:36 +03:00
98b2bdb410 io: cleanup ReaderWriter interface (#12218) 2021-10-17 19:39:51 +03:00
0386f2bbea checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
4a0d00fb30 io.util: simplify random number generation in util.v 2021-09-23 14:20:39 +03:00
b63ec8fbcf checker: require params attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
f731060caf all: update chmod/chdir usages 2021-08-28 10:23:01 +03:00
800c0e5092 vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
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
143c3d4bb4 io: deprecate io.make_reader (not needed anymore) 2021-05-13 10:26:26 +03:00
26652c8a23 io: make new_multi_writer use varargs (#10062) 2021-05-09 09:21:08 +03:00
68c8709343 io: add MultiWriter (#10021) 2021-05-08 14:21:53 +03:00
8a380f4699 tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
f5ce9388de io: make io.cp use chunks (#9877) 2021-04-26 09:59:23 +03:00
00261afbc1 io: add a cp function (#9875) 2021-04-25 21:22:33 +03:00
69dff4b384 os: make os module handle large files (#9439) 2021-03-26 07:51:55 +01:00
9b78d7d21d tools: check formatting of more modules with v test-cleancode, colorize v vet output 2021-03-24 12:39:39 +02:00
852d302b87 io: BufferedReader.free() 2021-03-15 21:25:19 +01:00
5e0e44eb69 os: move file methods to vlib/os/file.c.v, document them, add new file.read_struct and file.write_struct and tests 2021-03-04 14:54:39 +02:00
2bfa6dfe2f io: fix not reading the last byte of a stream with .read(mut buf) 2021-03-04 08:59:48 +02:00
a5dd7faf3c rand: add PRNG interface and unit-tests (#9083) 2021-03-03 13:41:00 +02:00
b712af56fd all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
d63b7bc35a all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
b9a381f101 all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +03:00
23f231ee61 builtin: tag array methods unsafe: *_many, grow_len, pointers (#8983) 2021-02-26 22:55:09 +01:00
2002d20249 io: remove unused Zzz_CoerceInterfaceTableGeneration struct; add test for x := Enum{} 2021-02-17 01:37:05 +02:00
4961d3ea17 io: fix detection of end_of_stream, when reading files through io.new_buffered_reader(reader: io.make_reader(f)) 2021-02-16 23:22:17 +02:00
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
97103f680a rand: separate rand.util and rand.seed submodules (#8353) 2021-01-26 15:55:09 +02:00
3289dff7ff checker: require explicit return none (#8060) 2021-01-12 11:43:55 +01:00
ad79d55a5c ftp: fix an error (#7930) 2021-01-07 20:21:47 +01:00
a8447398f5 io: remove obsolete OutputStream 2020-12-22 10:44:45 +01:00
553ecf63e7 vlib/io: fix reader bugs, make read_all take a config struct (#7361) 2020-12-16 18:22:26 +01:00
e3a1756b11 net: add tcp_default_read_timeout and tcp_default_write_timeout and use them consistently 2020-12-15 17:54:51 +02:00
a4d3a0575a vdoc: add http connection read/write timeouts (fix #7343) 2020-12-15 17:12:39 +02:00
07fae5adf6 io: add a test for read_all (#6898) 2020-11-23 16:17:39 +01:00
cd2a2cef25 vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
ea31f75098 checker: more default field fixes 2020-09-09 14:14:44 +02:00
1c5b9db63f io: introduce a go-like io.util module (#6323) 2020-09-08 14:17:01 +02:00
97fec78b40 io: input/output streams (#6078) 2020-08-09 04:12:29 +02:00