Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFromFile ¶
ReadFromFile reads the contents of a specified file into memory and returns it as a byte slice. Returns an error if the file cannot be opened, read, or closed.
func WriteToFile ¶
WriteToFile writes the given byte data to a specified file. It creates or truncates the file, writes the data, flushes it to disk, and closes the file. Returns an error if any step fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.