The Go Programming Language Phrasebook (Developer's Library)

個数:

The Go Programming Language Phrasebook (Developer's Library)

  • 在庫がございません。海外の書籍取次会社を通じて出版社等からお取り寄せいたします。
    通常6~9週間ほどで発送の見込みですが、商品によってはさらに時間がかかることもございます。
    重要ご説明事項
    1. 納期遅延や、ご入手不能となる場合がございます。
    2. 複数冊ご注文の場合は、ご注文数量が揃ってからまとめて発送いたします。
    3. 美品のご指定は承りかねます。

    ●3Dセキュア導入とクレジットカードによるお支払いについて
  • 【入荷遅延について】
    世界情勢の影響により、海外からお取り寄せとなる洋書・洋古書の入荷が、表示している標準的な納期よりも遅延する場合がございます。
    おそれいりますが、あらかじめご了承くださいますようお願い申し上げます。
  • ◆画像の表紙や帯等は実物とは異なる場合があります。
  • ◆ウェブストアでの洋書販売価格は、弊社店舗等での販売価格とは異なります。
    また、洋書販売価格は、ご注文確定時点での日本円価格となります。
    ご注文確定後に、同じ洋書の販売価格が変動しても、それは反映されません。
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 264 p.
  • 言語 ENG
  • 商品コード 9780321817143
  • DDC分類 005.3

Full Description


The Go Programming Language PhrasebookEssential 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 AccessibleEasy to carry and easy to use: Ditch all those bulky books for one portable pocket guideFlexible and FunctionalPacked with more than 100 customizable code snippets: Quickly create solid Go code to solve just about any problemRegister your book at informit.com/register for convenient access to downloads, updates, and corrections as they become available.

Contents

1 Introducing Go 1Go and C 1Why Go? 4Goroutines and Channels 7Selecting a Compiler 10Creating a Simple Go Program 13The Go Type System 14Understanding the Memory Model 162 A Go Primer 21The Structure of a Go Source File 23Declaring Variables 26Declaring Functions 29Looping in Go 32Creating Enumerations 35Declaring Structures 37Defining Methods 39Implementing Interfaces 42Casting Types 473 Numbers 51Converting Between Strings and Numbers 52Using Large Integers 54Converting Between Numbers and Pointers 564 Common Go Patterns 61Zero Initialization 62Generic Data Structures 67Specialized Generic Data Structures 69Implementation Hiding 72Type Embedding 755 Arrays and Slices 79Creating Arrays 81Slicing Arrays 83Resizing Slices 85Truncating Slices 87Iterating Over Arrays 886 Manipulating Strings 91Comparing Strings 92Processing a String One Character at a Time 94Processing a Partial String 96Splitting and Trimming Strings 98Copying Strings 102Creating Strings from Patterns 102Matching Patterns in Strings 1047 Working with Collections 107Creating a Map 108Storing Unordered Groups of Objects 111Using Lists 112Defining New Collections 1148 Handling Errors 117Deferring Cleanup 118Panicking and Recovering 121Returning Error Values 125Error Delegates 1279 Goroutines 131Creating Goroutines 131Synchronizing Goroutines 134Waiting for a Condition 137Performing Thread-Safe Initialization 140Performing Actions in the Background 142Communicating Via Channels 144Using Multiple Channels 14810 Concurrency Design Patterns 151Timing Out Connections 152Aliased xor Mutable 154Share Memory by Communicating 156Transactions by Sharing Channels 159Concurrent Objects 162Implementing Futures in Go 164Coalescing Events 166Map Reduce, Go Style 16811 Dates and Times 175Finding the Current Date 176Converting Dates for Display 177Parsing Dates from Strings 179Calculating Elapsed Time 180Receiving Timer Events 18112 Accessing Files and the Environment 183Manipulating Paths 184Reading a File 186Reading One Line at a Time 188Determining if a File or Directory Exists 190Checking Environment Variables 19213 Network Access 195Connecting to Servers 196Distributing Go 199Serving Objects 204Calling Remote Procedures 20614 Web Applications 207Integrating with a Web Server 208Connecting to Web Servers 211Parsing HTML 213Generating HTML 21615 Interacting with the Go Runtime 219Finding the Type of a Variable 220Finalizing Structures 223Copying Arbitrary Types 226Constructing Function Calls 228Calling C Functions 23016 Distributing Go Code 233Installing Third-Party Packages 234Creating Packages 236Documenting Your Code 240Staying Up to Date 24117 Debugging Go 243Using a Debugger 243Misunderstanding Memory Ordering 247Spotting Concurrency Bugs 249Restricting Behavior 252Building Unit Tests 257Index 259

最近チェックした商品