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

  • 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
主站蜘蛛池模板: 原阳县| 怀宁县| 两当县| 鄄城县| 海门市| 望江县| 南川市| 濮阳县| 湟源县| 定安县| 鞍山市| 武定县| 拜城县| 景德镇市| 万荣县| 灵宝市| 新营市| 大丰市| 汉寿县| 七台河市| 昭平县| 琼结县| 静安区| 台江县| 阿拉善盟| 南城县| 绵竹市| 马边| 郎溪县| 嵊州市| 聂拉木县| 泊头市| 城市| 防城港市| 绥江县| 大邑县| 昭苏县| 山阳县| 五寨县| 龙海市| 怀来县|