وبلاگ بلیان

Learning Go

معرفی کتاب «Learning Go» نوشتهٔ Miek Gieben در سال 2011. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Learning Go» در دستهٔ بدون دسته‌بندی قرار دارد.

"Learning Go" is a book that gives an introduction into the Go programming language of Google. The book currently consists out +/- 120 (A4 sized) pages and the following chapters: Introduction Show how to install Go and details the lineage of the language Go. Basics Types, variables and control structures. Functions How to make and use functions. Packages Functions and data is grouped together in packages. Here you will see how to make your own package. How to unit test your package is also described. Beyond the basics Learn how to create your own data types and define function on them (called methods in Go). Interfaces Go does not support Object Orientation in the traditional sense. In Go the central concept is interfaces. Concurrency With the go keyword function can be started in separate routines (called goroutines). Communication with those goroutines is done via channels. Communication How to create/read/write from and to files. And how to do networking. Each chapter concludes with a number of exercises (and answers) to may help you to get some hands on experience. Currently it has more than 30 exercises. Introduction......Page 10 Getting Go......Page 11 Origins......Page 12 Exercises......Page 13 Answers......Page 14 Basics......Page 15 Compiling and running code......Page 16 Variables, types and keywords......Page 17 Operators and built-in functions......Page 21 Control structures......Page 22 Arrays, slices and maps......Page 28 Exercises......Page 32 Answers......Page 34 Functions......Page 39 Scope......Page 40 Multiple return values......Page 41 Named result parameters......Page 42 Deferred code......Page 43 Functions as values......Page 45 Panic and recovering......Page 46 Exercises......Page 47 Answers......Page 50 Packages......Page 57 Building a package......Page 58 Identifiers......Page 59 Documenting packages......Page 60 Testing packages......Page 61 Useful packages......Page 63 Exercises......Page 64 Answers......Page 66 Allocation......Page 69 Defining your own types......Page 72 Conversions......Page 74 Exercises......Page 76 Answers......Page 78 Interfaces......Page 81 Methods......Page 83 A sorting example......Page 85 Exercises......Page 89 Answers......Page 90 Concurrency......Page 93 More on channels......Page 95 Exercises......Page 96 Answers......Page 98 Files and directories......Page 101 Command line arguments......Page 102 Networking......Page 103 Exercises......Page 104 Answers......Page 108 License and copyright......Page 115 Index......Page 117 Bibliography......Page 119
دانلود کتاب Learning Go