Refactored the interface of the io package
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
import sys
|
||||
|
||||
read(fd int, buffer []byte) -> int {
|
||||
read(buffer []byte) -> int {
|
||||
return sys.read(std.in, buffer, len(buffer))
|
||||
}
|
||||
|
||||
readFrom(fd int, buffer []byte) -> int {
|
||||
return sys.read(fd, buffer, len(buffer))
|
||||
}
|
Reference in New Issue
Block a user