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

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
主站蜘蛛池模板: 建湖县| 台北县| 红安县| 岑巩县| 建宁县| 凯里市| 北京市| 海林市| 江安县| 平乡县| 辽中县| 德安县| 长寿区| 临洮县| 石景山区| 永嘉县| 诸暨市| 乌兰察布市| 阳朔县| 汤阴县| 乌兰浩特市| 西贡区| 米易县| 扬州市| 乡城县| 舞阳县| 五莲县| 丰镇市| 肃北| 丰顺县| 卢湾区| 万州区| 海盐县| 昌都县| 林甸县| 平南县| 开阳县| 灵石县| 田林县| 永寿县| 九江县|