August 2019
Beginner to intermediate
798 pages
17h 2m
English
The reading of data from the standard input will be illustrated in stdIN.go, which you will see in two parts. The first part is as follows:
package main
import (
"bufio"
"fmt"
"os"
)
In the preceding code, you can see the use of the bufio package for the first time in this book.
Although the bufio package is mostly used for file input and output, you will keep seeing the os package all the time in this book because it contains many handy functions; its most common functionality is that it provides a way to access the command-line arguments of a Go program (os.Args).
The official description of the os package tells us ...
Read now
Unlock full access