Atnaujinkite slapukų nuostatas

Go Programming Language Phrasebook, The [Minkštas viršelis]

3.89/5 (127 ratings by Goodreads)
  • Formatas: Paperback / softback, 288 pages, aukštis x plotis x storis: 176x119x15 mm, weight: 228 g
  • Serija: Developer's Library
  • Išleidimo metai: 10-May-2012
  • Leidėjas: Addison-Wesley Educational Publishers Inc
  • ISBN-10: 0321817141
  • ISBN-13: 9780321817143
Kitos knygos pagal šią temą:
  • Formatas: Paperback / softback, 288 pages, aukštis x plotis x storis: 176x119x15 mm, weight: 228 g
  • Serija: Developer's Library
  • Išleidimo metai: 10-May-2012
  • Leidėjas: Addison-Wesley Educational Publishers Inc
  • ISBN-10: 0321817141
  • ISBN-13: 9780321817143
Kitos knygos pagal šią temą:
A guide to Go describes how the programming language is structured and provides examples of code that demonstrate every stage of Go development, from creating a simple program to debugging and distributing code. The Go Programming Language Phrasebook Essential Go code and idioms for all facets of the development process This guide gives you the code “phrases” you need to quickly and effectively complete a wide variety of projects with Go, today’s most exciting new programming language. Tested, easy-to-adapt code examples illuminate every step of Go development, helping you write highly scalable, concurrent software. You’ll master Go-specific idioms for working with strings, collections, arrays, error handling, goroutines, slices, maps, channels, numbers, dates, times, files, networking, web apps, the runtime, and more. Concise and Accessible Easy to carry and easy to use: Ditch all those bulky books for one portable pocket guide Flexible and Functional Packed with more than 100 customizable code snippets: Quickly create solid Go code to solve just about any problem Register your book at informit.com/register for convenient access to downloads, updates, and corrections as they become available.
1 Introducing Go
1(20)
Go and C
1(3)
Why Go?
4(3)
Goroutines and Channels
7(3)
Selecting a Compiler
10(3)
Creating a Simple Go Program
13(1)
The Go Type System
14(2)
Understanding the Memory Model
16(5)
2 A Go Primer
21(30)
The Structure of a Go Source File
23(3)
Declaring Variables
26(3)
Declaring Functions
29(3)
Looping in Go
32(3)
Creating Enumerations
35(2)
Declaring Structures
37(2)
Defining Methods
39(3)
Implementing Interfaces
42(5)
Casting Types
47(4)
3 Numbers
51(10)
Converting Between Strings and Numbers
52(2)
Using Large Integers
54(2)
Converting Between Numbers and Pointers
56(5)
4 Common Go Patterns
61(18)
Zero Initialization
62(5)
Generic Data Structures
67(2)
Specialized Generic Data Structures
69(3)
Implementation Hiding
72(3)
Type Embedding
75(4)
5 Arrays and Slices
79(12)
Creating Arrays
81(2)
Slicing Arrays
83(2)
Resizing Slices
85(2)
Truncating Slices
87(1)
Iterating Over Arrays
88(3)
6 Manipulating Strings
91(16)
Comparing Strings
92(2)
Processing a String One Character at a Time
94(2)
Processing a Partial String
96(2)
Splitting and Trimming Strings
98(4)
Copying Strings
102(1)
Creating Strings from Patterns
102(2)
Matching Patterns in Strings
104(3)
7 Working with Collections
107(10)
Creating a Map
108(3)
Storing Unordered Groups of Objects
111(1)
Using Lists
112(2)
Defining New Collections
114(3)
8 Handling Errors
117(14)
Deferring Cleanup
118(3)
Panicking and Recovering
121(4)
Returning Error Values
125(2)
Error Delegates
127(4)
9 Goroutines
131(20)
Creating Goroutines
131(3)
Synchronizing Goroutines
134(3)
Waiting for a Condition
137(3)
Performing Thread-Safe Initialization
140(2)
Performing Actions in the Background
142(2)
Communicating Via Channels
144(4)
Using Multiple Channels
148(3)
10 Concurrency Design Patterns
151(24)
Timing Out Connections
152(2)
Aliased xor Mutable
154(2)
Share Memory by Communicating
156(3)
Transactions by Sharing Channels
159(3)
Concurrent Objects
162(2)
Implementing Futures in Go
164(2)
Coalescing Events
166(2)
Map Reduce, Go Style
168(7)
11 Dates and Times
175(8)
Finding the Current Date
176(1)
Converting Dates for Display
177(2)
Parsing Dates from Strings
179(1)
Calculating Elapsed Time
180(1)
Receiving Timer Events
181(2)
12 Accessing Files and the Environment
183(12)
Manipulating Paths
184(2)
Reading a File
186(2)
Reading One Line at a Time
188(2)
Determining if a File or Directory Exists
190(2)
Checking Environment Variables
192(3)
13 Network Access
195(12)
Connecting to Servers
196(3)
Distributing Go
199(5)
Serving Objects
204(2)
Calling Remote Procedures
206(1)
14 Web Applications
207(12)
Integrating with a Web Server
208(3)
Connecting to Web Servers
211(2)
Parsing HTML
213(3)
Generating HTML
216(3)
15 Interacting with the Go Runtime
219(14)
Finding the Type of a Variable
220(3)
Finalizing Structures
223(3)
Copying Arbitrary Types
226(2)
Constructing Function Calls
228(2)
Calling C Functions
230(3)
16 Distributing Go Code
233(10)
Installing Third-Party Packages
234(2)
Creating Packages
236(4)
Documenting Your Code
240(1)
Staying Up to Date
241(2)
17 Debugging Go
243(16)
Using a Debugger
243(4)
Misunderstanding Memory Ordering
247(2)
Spotting Concurrency Bugs
249(3)
Restricting Behavior
252(5)
Building Unit Tests
257(2)
Index 259
David Chisnall is author of Objective-C Phrasebook, Second Edition. He is an active contributor to the GNUstep project and cofounded the Étoilé project to build a desktop environment atop GNUstep. Chisnall has written several articles for informIT.com including a three-part series on Go for Objective-C Programmers.