command
Version:
v0.0.0-...-cf25b83
Opens a new window with list of versions in this module.
Published: Dec 22, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
read-file example
Reading a file a few different ways.
GitHub Webpage
METHODS
Method 1
ioutil.ReadFile
- Read entire file contents into memory
Method 2
os.Open
- Open the file and read what you want
Method 3
bufio.NewReader
- Buffered reading using bufio package.
RUN
go run read-file.go
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.