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

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/.
主站蜘蛛池模板: 正宁县| 肥东县| 准格尔旗| 邹平县| 怀仁县| 峨眉山市| 萍乡市| 深泽县| 广平县| 台北县| 锡林郭勒盟| 嫩江县| 桑日县| 枣阳市| 东乡族自治县| 班戈县| 磐安县| 岐山县| 厦门市| 图片| 亳州市| 渝北区| 司法| 六安市| 苍南县| 山阳县| 清河县| 阜城县| 襄垣县| 乌拉特前旗| 黔西县| 巴中市| 剑河县| 高安市| 舞阳县| 吉首市| 龙里县| 莆田市| 尉犁县| 陆川县| 增城市|