• TA的每日心情
    开心
    2019-11-8 00:00
  • 签到天数: 10 天

    [LV.3]偶尔看看

    86

    主题

    11

    回帖

    521

    积分

    永久VIP

    积分
    521
    发表于 2019-11-5 22:03:38 885 浏览 0 回复

    [Golang] go编程语言短语手册完整pdf扫描版

    本帖最后由 scourglass22 于 2019-11-5 23:01 编辑

    1.png

    Table of Contents
    1Introducing Go1
    Go and C1
    Why Go?4
    Goroutines and Channels7
    Selecting a Compiler10
    Creating a Simple Go Program13
    The Go Type System14
    Understanding the Memory Model162AGo Primer21
    The Structure of a Go Source File 23
    Declaring Variables26
    Declaring Functions 29
    Looping in Go32
    Creating Enumerations 35
    Declaring Structures37
    Defining Methods39
    Implementing Interfaces42
    Casting Types47
    Converting Between Strings and Numbers 52
    Converting Between Numbers and Pointers 56
    4Common Go Patterns61
    Contents
    Zero Initialization62
    Generic Data Structures67
    Specialized Generic Data Structures 69
    Implementation Hiding72
    Type Embedding75
    5Arrays and Slices79
    Creating Arrays81
    Slicing Arrays83
    Resizing Slices85
    Truncating Slices87
    Iterating Over Arrays88
    6Manipulating Strings91
    Comparing Strings92
    Processing a String One Character at a
    Time94
    Processing a Partial String96
    Splitting and Trimming Strings98
    Copying Strings102
    Creating Strings from Patterns102
    Matching Patterns in Strings104
    7Working with Collections107
    Creating a Map108
    Storing Unordered Groups of Objects 111
    Using Lists112
    Defining New Collections114
    Contents
    8 Handling Errors117
    Deferring Cleanup118
    Panicking and Recovering 121
    Returning Error Values125
    Error Delegates127
    9Goroutines131
    Creating Goroutines131
    Synchronizing Goroutines134
    Waiting for a Condition137
    Performing Thread-Safe Initialization 140
    Performing Actions in the Background 142
    Communicating Via Channels144
    Using Multiple Channels14810Concurrency Design Patterns151
    Timing Out Connections 152
    Aliased xor Mutable154
    Share Memory by Communicating156
    Transactions by Sharing Channels159
    Concurrent Objects162
    Implementing Futures in Go164
    Coalescing Events166
    Map Reduce,Go Style 16811Dates and Times175
    Finding the Current Date176
    Converting Dates for Display 177
    vi Contents
    Parsing Dates from Strings179
    Calculating Elapsed Time180
    Receiving Timer Events181
    12 Accessing Files and the Environment 183
    Manipulating Paths184
    Reading a File186
    Reading One Line at a Time 188
    Determining if a File or Directory Exists 190
    Checking Environment Variables192
    13 Network Access195
    Connecting to Servers 196
    Distributing Go199
    Serving Objects204
    Calling Remote Procedures 206
    14Web Applications207
    Integrating with a Web Server208
    Connecting to Web Servers211
    Parsing HTML213
    Generating HTML216
    15 Interacting with the Go Runtime 219
    Finding the Type of a Variable 220
    Finalizing Structures223
    Copying Arbitrary Types226
    Constructing Function Calls228
    Calling CFunctions230
    Contents vii
    16 Distributing Go Code 233
    Installing Third-Party Packages234
    Creating Packages236
    Documenting Your Code240
    Staying Up to Date241
    17Debugging Go243
    Using a Debugger243
    Misunderstanding Memory Ordering247
    Spotting Concurrency Bugs 249
    Restricting Behavior252
    Building Unit Tests257
    Index259

    下载地址:

    游客,如果您要查看本帖隐藏内容请回复


    回复

    使用道具 举报

    返回列表
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    登录或注册

    团队

    一匹野马

    官方客服

    陆风-Q:1953128864

    官方QQ群

    825348618(程序员教程吧互助群)

    扫一扫快速加入

    群号652692981

    快速回复 返回顶部 返回列表