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

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/.
主站蜘蛛池模板: 确山县| 开鲁县| 佛学| 萍乡市| 苍溪县| 西藏| 肇庆市| 台湾省| 温州市| 万载县| 安溪县| 兰溪市| 安阳县| 咸宁市| 瑞安市| 保定市| 崇信县| 汉寿县| 朝阳县| 麦盖提县| 宝兴县| 沅江市| 乐至县| 通河县| 台北县| 濮阳市| 翼城县| 祥云县| 兰溪市| 江津市| 林西县| 隆回县| 曲松县| 长白| 渑池县| 和平县| 永顺县| 南平市| 谷城县| 丽江市| 工布江达县|