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

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/.
主站蜘蛛池模板: 科技| 酒泉市| 织金县| 东至县| 鱼台县| 九江市| 德惠市| 泾川县| 仪陇县| 舟山市| 神池县| 巧家县| 上高县| 阿拉尔市| 罗源县| 绥江县| 邢台县| 长乐市| 崇仁县| 天柱县| 嘉祥县| 安龙县| 连山| 苏尼特左旗| 黄骅市| 南昌县| 华池县| 景谷| 张家港市| 延庆县| 西盟| 弥渡县| 泸水县| 临沭县| 桐柏县| 新化县| 大足县| 阳东县| 肥城市| 满城县| 宜兰市|