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

Advanced Go Features

In the previous chapter, you learned how to compile Go code, how to get input from the user and print the output on the screen, how to create your own Go functions, the data structures that Go supports, and how to process command-line arguments.

This chapter will discuss many fascinating things, so you better prepare yourselves for lots of interesting and practical Go code that will help you perform many different yet really important tasks, starting with error handling and ending with how to avoid some common Go mistakes. If you are familiar with Go, you can skip what you already know, but please do not skip the proposed exercises.

So, this chapter will talk about some advanced Go features, including:

  • Error handling
  • Error logging
  • Pattern matching and regular expressions
  • Reflection
  • How to use the strace(1) and dtrace(1) tools to watch the system calls of Go executable files
  • How to detect unreachable Go code
  • How to avoid various common Go mistakes
主站蜘蛛池模板: 怀安县| 迁西县| 鞍山市| 九龙县| 金溪县| 太原市| 静宁县| 上思县| 仙游县| 黔江区| 乌审旗| 怀集县| 航空| 习水县| 东丽区| 金华市| 道孚县| 彰武县| 鹤壁市| 峨眉山市| 左云县| 邯郸市| 右玉县| 双鸭山市| 三门县| 济宁市| 福贡县| 青田县| 襄汾县| 阳原县| 轮台县| 祥云县| 上思县| 宁化县| 河北区| 望谟县| 新田县| 福清市| 鲜城| 大兴区| 梁河县|