- 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
- Mastering Concurrency Programming with Java 8
- 軟件測(cè)試工程師面試秘籍
- Python進(jìn)階編程:編寫更高效、優(yōu)雅的Python代碼
- Python高效開發(fā)實(shí)戰(zhàn):Django、Tornado、Flask、Twisted(第2版)
- C語言程序設(shè)計(jì)學(xué)習(xí)指導(dǎo)與習(xí)題解答
- Mastering Drupal 8 Views
- INSTANT Sinatra Starter
- 基于ARM Cortex-M4F內(nèi)核的MSP432 MCU開發(fā)實(shí)踐
- Mobile Device Exploitation Cookbook
- Android移動(dòng)開發(fā)案例教程:基于Android Studio開發(fā)環(huán)境
- OpenStack Networking Essentials
- App Inventor 2 Essentials
- C編程技巧:117個(gè)問題解決方案示例
- STM8實(shí)戰(zhàn)
- 精通Spring:Java Web開發(fā)與Spring Boot高級(jí)功能