This is a summary of the topics that will be the io/ioutilpackages that have been updated in Go 1.16 "deprecated". In general, utilpackage names such as, as introduced as bad package names in Package names , are names that should be avoided unless they are purely utility-providing packages.

io There are three types / functions to move to the package: # 40025 According to Discardthe NopCloserhappened io/ioutilhad been included in the package, and is the.

As you can see in Go 1 and the Future of Go Programs , source-level backward compatibility is maintained, at least for Go 1 . ioutilThe functions in the package are so convenient that they are used in many implementations, but ioutilexisting implementations that use the package will continue to work.

Related Articles