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

  • Go Systems Programming
  • Mihalis Tsoukalos
  • 187字
  • 2021-07-02 18:07:56

Writing Programs in Go

This chapter will talk about many essential, interesting, and handy Go topics that will help you be more productive. I think it would be a good idea to start this chapter by compiling and running the Go code of the hw.go program from the previous chapter. Then, you will learn how to deal with the environment variables that can be used by Go, how to process the command-line arguments of a Go program, and how to print the output on the screen and get input from the user. Finally, you will see how to define functions in Go, learn about the extremely important defer keyword, look at the data structures that come with Go, and learn what Go interfaces are before checking out code that generates random numbers.

Therefore, in this chapter, you will become familiar with many Go concepts, including the following:

  • Compiling your Go programs
  • Go environment variables
  • Using the command-line arguments given to a Go program
  • Getting user input and printing the output on your screen
  • Go functions and the defer keyword
  • Go data structures and interfaces
  • Creating random numbers
主站蜘蛛池模板: 依兰县| 五指山市| 和静县| 林州市| 石台县| 北安市| 怀仁县| 西吉县| 宣汉县| 浏阳市| 巴林左旗| 富川| 丰顺县| 通河县| 贵定县| 嵊泗县| 长沙市| 库车县| 如东县| 阳江市| 锡林郭勒盟| 呼图壁县| 金乡县| 开江县| 石棉县| 陆川县| 大埔县| 万宁市| 新田县| 独山县| 色达县| 晋州市| 临西县| 农安县| 龙游县| 交城县| 阿坝| 巩留县| 青铜峡市| 尼木县| 罗田县|