【文件属性】:
文件名称:Go CookBook golang
文件大小:717KB
文件格式:PDF
更新时间:2021-04-04 08:22:46
golang go
Go provides excellent support for both basic and complex I/O. The recipes
in this chapter will explore common Go interfaces to deal with I/O and show
how to make use of them. The Go standard library frequently uses
these interfaces, and these interfaces will be used by recipes throughout
the book.
You'll learn how to work with data in memory and in the form of streams.
You'll see examples of working with files and directories and of working
with the CSV format. The temporary files recipe discusses a mechanism to
work with files without the overhead of dealing with name collision and
more. Lastly, we'll explore Go standard templates for both plain text and
HTML.Â
These recipes should lay the foundation for the use of interfaces to represent
and modify data and should help you think about data in an abstract and
flexible way.