官术网_书友最值得收藏!

User input and output

According to the Unix philosophy, when a program finishes its job successfully, it generates no output. However, for a number of reasons, not all programs finish successfully and they need to inform the user about their issues by printing appropriate messages. Additionally, some system tools need to get input from the user in order to decide how to handle a situation that might come up.

The hero of Go user input and output is the fmt package, and this section is going to show you how to perform these two tasks by starting with the simplest one.

The best place to learn more about the fmt package is its documentation page, which can be found at https://golang.org/pkg/fmt/.
主站蜘蛛池模板: 龙门县| 高清| 绥芬河市| 徐水县| 巴彦淖尔市| 洞头县| 五常市| 长葛市| 泸溪县| 赣州市| 靖远县| 永胜县| 新邵县| 远安县| 武汉市| 临安市| 大埔区| 庆云县| 福州市| 海伦市| 高阳县| 嵊州市| 通海县| 宁城县| 永吉县| 青铜峡市| 广东省| 古浪县| 平罗县| 伊川县| 林芝县| 牙克石市| 象州县| 新营市| 阳山县| 甘泉县| 乌兰浩特市| 长顺县| 大港区| 邢台市| 宝应县|