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

  • 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
主站蜘蛛池模板: 平阳县| 朔州市| 贵溪市| 牙克石市| 信宜市| 福贡县| 石阡县| 石阡县| 石棉县| 华阴市| 紫金县| 睢宁县| 兰州市| 辉县市| 始兴县| 建宁县| 本溪| 建阳市| 东乌珠穆沁旗| 常宁市| 射阳县| 区。| 砀山县| 柏乡县| 南华县| 永安市| 云安县| 浮山县| 金寨县| 白银市| 武鸣县| 万全县| 航空| 湖北省| 泸水县| 武安市| 广宁县| 宜良县| 凤山市| 安溪县| 临湘市|