- 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
- Getting Started with Citrix XenApp? 7.6
- Vue.js 3.x快速入門
- 企業(yè)級Java EE架構(gòu)設(shè)計精深實踐
- JMeter 性能測試實戰(zhàn)(第2版)
- Java從入門到精通(第4版)
- 高級C/C++編譯技術(shù)(典藏版)
- Silverlight魔幻銀燈
- Python機器學(xué)習(xí)編程與實戰(zhàn)
- Java網(wǎng)絡(luò)編程實戰(zhàn)
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- 區(qū)塊鏈項目開發(fā)指南
- C語言程序設(shè)計實訓(xùn)教程與水平考試指導(dǎo)
- RocketMQ實戰(zhàn)與原理解析
- Java Web開發(fā)實例大全(基礎(chǔ)卷) (軟件工程師開發(fā)大系)
- C語言從入門到精通