Refactored the interface of the io package

This commit is contained in:
Eduard Urbach 2025-04-07 18:02:36 +02:00
parent 127b87f4ea
commit 013d3dd8cd
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 29 additions and 35 deletions

View file

@ -1,5 +1,9 @@
import sys
write(fd int, buffer []byte) -> int {
write(buffer []byte) -> int {
return sys.write(std.out, buffer, len(buffer))
}
writeTo(fd int, buffer []byte) -> int {
return sys.write(fd, buffer, len(buffer))
}