, ,

The Go Programming Language

Paperback Engels 2015 1e druk 9780134190440
€ 51,25
Nu besteld, dinsdag in huis
Gratis verzonden

Samenvatting

The Go Programming Language is the authoritative resource for any programmer who wants to learn Go. It shows how to write clear and idiomatic Go to solve real-world problems. The book does not assume prior knowledge of Go nor experience with any specific language, so you’ll find it accessible whether you’re most comfortable with JavaScript, Ruby, Python, Java, or C++.

- The first chapter is a tutorial on the basic concepts of Go, introduced through programs for file I/O and text processing, simple graphics, and web clients and servers.
- Early chapters cover the structural elements of Go programs: syntax, control flow, data types, and the organization of a program into packages, files, and functions. The examples illustrate many packages from the standard library and show how to create new ones of your own. Later chapters explain the package mechanism in more detail, and how to build, test, and maintain projects using the go tool.
- The chapters on methods and interfaces introduce Go’s unconventional approach to object-oriented programming, in which methods can be declared on any type and interfaces are implicitly satisfied. They explain the key principles of encapsulation, composition, and substitutability using realistic examples.
- Two chapters on concurrency present in-depth approaches to this increasingly important topic. The first, which covers the basic mechanisms of goroutines and channels, illustrates the style known as communicating sequential processes for which Go is renowned. The second covers more traditional aspects of concurrency with shared variables. These chapters provide a solid foundation for programmers encountering concurrency for the first time.
- The final two chapters explore lower-level features of Go. One covers the art of metaprogramming using reflection. The other shows how to use the unsafe package to step outside the type system for special situations, and how to use the cgo tool to create Go bindings for C libraries.

The book features hundreds of interesting and practical examples of well-written Go code that cover the whole language, its most important packages, and a wide range of applications. Each chapter has exercises to test your understanding and explore extensions and alternatives. Source code is freely available for download from http://gopl.io/ and may be conveniently fetched, built, and installed using the go get command.

Specificaties

ISBN13:9780134190440
Taal:Engels
Bindwijze:paperback
Aantal pagina's:400
Druk:1
Verschijningsdatum:30-10-2015

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface xi
Chapter 1: Tutorial 1
1.1 Hello, World 1
1.2 Command-Line Arguments 4
1.3 Finding Duplicate Lines 8
1.4 Animated GIFs 13
1.5 Fetching a URL 15
1.6 Fetching URLs Concurrently 17
1.7 A Web Server 19
1.8 Loose Ends 23

Chapter 2: Program Structure 27
2.1 Names 27
2.2 Declarations 28
2.3 Variables 30
2.4 Assignments 36
2.5 Type Declarations 39
2.6 Packages and Files 41
2.7 Scope 45

Chapter 3: Basic Data Types 51
3.1 Integers 51
3.2 Floating-Point Numbers 56
3.3 Complex Numbers 61
3.4 Booleans 63
3.5 Strings 64
3.6 Constants 75

Chapter 4: Composite Types 81
4.1 Arrays 81
4.2 Slices 84
4.3 Maps 93
4.4 Structs 99
4.5 JSON 107
4.6 Text and HTML Templates 113

Chapter 5: Functions 119
5.1 Function Declarations 119
5.2 Recursion 121
5.3 Multiple Return Values 124
5.4 Errors 127
5.5 Function Values 132
5.6 Anonymous Functions 135
5.7 Variadic Functions 142
5.8 Deferred Function Calls 143
5.9 Panic 148
5.10 Recover 151

Chapter 6:. Methods 155
6.1 Method Declarations 155
6.2 Methods with a Pointer Receiver 158
6.3 Composing Types by Struct Embedding 161
6.4 Method Values and Expressions 164
6.5 Example: Bit Vector Type 165
6.6 Encapsulation 168

Chapter 7: Interfaces 171
7.1 Interfaces as Contracts 171
7.2 Interface Types 174
7.3 Interface Satisfaction 175
Afgekapt op 60 regels

Managementboek Top 100

€ 51,25
Dinsdag in huis
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          The Go Programming Language