Go Language Combat PDF

Source: Internet
Author: User

: Network Disk Download

Content Introduction· · · · · ·

The go language combines the capabilities of the underlying system language with the advanced features of modern languages to reduce the barriers to building simple, reliable, and efficient software. This book provides readers with a focused, comprehensive and language-compliant perspective. The go language focuses on the specification and implementation of the language, including syntax, type systems, concurrency, plumbing, testing, and other topics.

Author profile ...

William Kennedy, a skilled software developer, is also the author of the blog Goinggo.net.

Brian Ketelsen and Erik St. Martin are organizers of the Global Go Language conference Gophercon and are co-authors of the Go language framework Skynet.

Googol, who has been focusing on the development of backend distributed Web services for many years, has used several popular backend technologies and related architectural practices, and is an early adopter and promoter of go language and Docker, the translator of the 1th Docker book. As the project technology leader, the million user-level live broadcast system has been successfully developed.

Table of Contents, chapter 1th Introduction to the Go language 1
1. 1 solving modern programming puzzles with go 2
1. 1. 1 Development Speed 2
1. 1. 2 Concurrent 3
1. 1. 3 Go Language type System 5
1. 1. 4 Memory Management 7
1. 2 Hello, Go 7
1. 3 Summary 8
2nd Chapter Quick Start a Go program 9
2. 1 Program Architecture 9
2. 2 Main Package 11
2. 3 Search Package 13
2. 3. 1 Search. Go 13
2. 3. 2 feeds. Go 21
2. 3. 3 match. Go default. Go 24
2. 4 RSS Match 30
2. 5 Summary 36
3rd Chapter Packaging and Toolchain 37
3. 1 Pack 37
3. 1. 1 Package Name Convention 38
3. 1. 2 Main Package 38
3. 2 Import 39
3. 2. 1 Remote Import 40
3. 2. 2 Naming import 40
3. 3 function init 41
3. 4 Tools for using Go 42
3. 5 further introduction to go development tools 44
3. 5. 1 Go Vet 44
3. 5. 2 Go Code Formatting 45
3. 5. 3 documentation for the Go language 45
3. 6 working with other go developers 48
3. 7 Dependency Management 48
3. 7. 1 third-party dependency 49
3. 7. 2 Introduction to GB 50
3. 8 Summary 52
4th chapter arrays, slices, and mappings 53
4. 1 internal implementation of arrays and basic functions 53
4. 1. 1 Internal implementations 53
4. 1. 2 Declaration and initialization 54
4. 1. 3 Using Arrays 55
4. 1. 4 multi-dimensional arrays 58
4. 1. 5 passing an array between functions 59
4. 2-Slice internal implementation and basic functionality 60
4. 2. 1 Internal implementations 60
4. 2. 2 Creating and Initializing 61
4. 2. 3 using slices 63
4. 2. 4 multi-dimensional slicing 74
4. 2. 5 passing slices between functions 75
4. 3 internal implementation and basic functionality of the mapping 76
4. 3. 1 Internal implementations 76
4. 3. 2 Creating and Initializing 78
4. 3. 3 Using Mappings 79
4. 3. 4 passing mappings between functions 81
4. 4 Summary 82
5th. Go Language Type System 83
5. 1 user-defined type 83
5. 2 Method 87
5. 3 nature of the Type 90
5. 3. 1 built-in type 91
5. 3. 2 Reference Type 91
5. 3. 3 Structure Type 93
5. 4 Interface 95
5. 4. 1 Standard library 96
5. 4. 2 Implementation 98
5. 4. 3 Method Set 99
5. 4. 4 polymorphic 103
5. 5 Embedding Type 105
5. 6 Public or non-exposed identifiers 113
5. 7 Summary 121
6th Chapter 122 Concurrent
6. 1 concurrency vs. parallel 122
6. 2 Goroutine 125
6. 3 Competition Status 132
6. 4 Lock shared Resources 135
6. 4. 1 Atomic Functions 135
6. 4. 2 Mutex Lock 138
6. 5 Channel 140
6. 5. 1 Non-buffered channel 141
6. 5. 2 Buffered Channels 146
6. 6 Summary 149
7th Chapter concurrency mode 150
7. 1 Runner 150
7. 2 Pool 158
7. 3 Work 168
7. 4 Summary 174
8th Standard Library 176
8. 1 documentation and source code 177
8. 2 Logging 178
8. 2. 1 Log Packet 179
8. 2. 2 Customizing the Logger 182
8. 2. 3 Conclusion 186
8. 3 Encoding and decoding 187
8. 3. 1 decoding JSON 187
8. 3. 2 Encoding JSON 192
8. 3. 3 Conclusion 193
8. 4 Inputs and outputs 193
8. 4. 1 writer and reader interface 194
8. 4. 2 integration and completion of work 195
8. 4. 3 Simple Curl 199
8. 4. 4 Conclusion 200
8. 5 Summary 200
9th Test and Performance 201
9. 1 Unit Test 201
9. 1. 1 basic Unit Test 202
9. 1. 2 Table Set Test 205
9. 1. 3 Impersonation Call 208
9. 1. 4 Testing the service endpoint 212
9. 2 Example 217
9. 3 Benchmark Test 220
9. 4 Summary 224

: Network Disk Download

Go Language Combat PDF

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.