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

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
主站蜘蛛池模板: 西乌| 德格县| 佛坪县| 如东县| 上林县| 澳门| 贵溪市| 抚宁县| 泸西县| 金堂县| 洛隆县| 南陵县| 乳山市| 宿迁市| 南涧| 柘城县| 堆龙德庆县| 伊宁市| 桑植县| 江城| 张北县| 南城县| 望谟县| 吉林市| 祁阳县| 独山县| 云梦县| 财经| 桃江县| 莒南县| 来安县| 高青县| 山丹县| 五原县| 遵义市| 灵台县| 丽江市| 嘉鱼县| 琼海市| 原阳县| 高碑店市|