The Go Bestiary: Bugs,gotchas and guidelines for go programmers
by: Kenneth Grant
ISBN-10: 1549928376
ISBN-13: 9781549928376
Publication Date 出版日期: 2017-10-09
Print Length 页数: 61
Book Description
By finelybook
The Go language is deceptively simple,with only 25 keywords and few data structures. The syntax is very like other languages in the C family. This means programmers coming from other languages like Java or C find it easy to get started,but sometimes feel the lack of familiar tools which Go simply leaves out – inheritance,assertions,exceptions,the ternary operator,enums,and generics are all missing by design. The intention of this book is to let a programmer who has some experience in other languages get up to speed quickly on Go,and be aware of pitfalls,bugs,and unexpected behaviour which people learning the language often prey into. As the language is relatively simple,there are not too many hidden surprises,and once you have spent some time working with Go you are unlikely to run into problems you don’t understand because the core language and standard library is not changing much.
Contents
Introduction
Setup
Strings
Structs
Slices
Maps
Goroutines
Channels
Functions
Packages
Interfaces
Servers
Databases
Time
Errors
Glossary