Documentation ¶
Index ¶
- func Copy(from gost.String, to gost.String) gost.Future[gost.Result[any]]
- func CreateDir(path gost.String) gost.Future[gost.Result[any]]
- func Read(path gost.String) gost.Future[gost.Result[[]gost.Byte]]
- func ReadDir(path gost.String) gost.Future[gost.Result[gost.Vec[gost.DirEntry]]]
- func ReadToString(path gost.String) gost.Future[gost.Result[gost.String]]
- func RemoveDir(path gost.String) gost.Future[gost.Result[any]]
- func RemoveFile(path gost.String) gost.Future[gost.Result[any]]
- func Rename(from gost.String, to gost.String) gost.Future[gost.Result[any]]
- func Spawn[T any](f func() T) gost.Future[T]
- func Write(path gost.String, data []gost.Byte) gost.Future[gost.Result[any]]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file. This function will overwrite the contents of to.
func ReadToString ¶
Read the entire contents of a file into a string.
func RemoveFile ¶
Removes a file from the filesystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.