Programming in Go
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Programming in Go: Creating Applications for the 21st Century
Programming in Go: Creating Applications for the 21st Century

Programming in Go: Creating Applications for the 21st Century

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

Your Hands-On Guide to Go, the Revolutionary New Language Designed for Concurrency, Multicore Hardware, and Programmer Convenience   Today’s most exciting new programming language, Go, is designed from the ground up to help you easily leverage all the power of today’s multicore hardware. With this guide, pioneering Go programmer Mark Summerfield shows how to write code that takes full advantage of Go’s breakthrough features and idioms.   Both a tutorial and a language reference, Programming in Go brings together all the knowledge you need to evaluate Go, think in Go, and write high-performance software with Go. Summerfield presents multiple idiom comparisons showing exactly how Go improves upon older languages, calling special attention to Go’s key innovations. Along the way, he explains everything from the absolute basics through Go’s lock-free channel-based concurrency and its flexible and unusual duck-typing type-safe approach to object-orientation.   Throughout, Summerfield’s approach is thoroughly practical. Each chapter offers multiple live code examples designed to encourage experimentation and help you quickly develop mastery. Wherever possible, complete programs and packages are presented to provide realistic use cases, as well as exercises. Coverage includes   Quickly getting and installing Go, and building and running Go programs Exploring Go’s syntax, features, and extensive standard library Programming Boolean values, expressions, and numeric types Creating, comparing, indexing, slicing, and formatting strings Understanding Go’s highly efficient built-in collection types: slices and maps Using Go as a procedural programming language Discovering Go’s unusual and flexible approach to object orientation Mastering Go’s unique, simple, and natural approach to fine-grained concurrency Reading and writing binary, text, JSON, and XML files Importing and using standard library packages, custom packages, and third-party packages Creating, documenting, unit testing, and benchmarking custom packages

Table of Contents:
Tables xv   Introduction 1 Why Go? 1 The Structure of the Book 4 Acknowledgments 5   Chapter 1: An Overview in Five Examples 7 1.1. Getting Going 7 1.2. Editing, Compiling, and Running 9 1.3. Hello Who? 14 1.4. Big Digits–Two-Dimensional Slices 16 1.5. Stack–Custom Types with Methods 21 1.6. Americanise–Files, Maps, and Closures 29 1.7. Polar to Cartesian–Concurrency 40 1.8. Exercise 48   Chapter 2: Booleans and Numbers 51 2.1. Preliminaries 51 2.2. Boolean Values and Expressions 56 2.3. Numeric Types 57 2.4. Example: Statistics 72 2.5. Exercises 78   Chapter 3: Strings 81 3.1. Literals, Operators, and Escapes 83 3.2. Comparing Strings 86 3.3. Characters and Strings 87 3.4. Indexing and Slicing Strings 90 3.5. String Formatting with the Fmt Package 93 3.6. Other String-Related Packages 106 3.7. Example: M3u2pls 130 3.8. Exercises 135   Chapter 4: Collection Types 139 4.1. Values, Pointers, and Reference Types 140 4.2. Arrays and Slices 148 4.3. Maps 164 4.4. Examples 171 4.5. Exercises 180   Chapter 5: Procedural Programming 185 5.1. Statement Basics 186 5.2. Branching 192 5.3. Looping with For Statements 203 5.4. Communication and Concurrency Statements 205 5.5. Defer, Panic, and Recover 212 5.6. Custom Functions 219 5.7. Example: Indent Sort 244 5.8. Exercises 250   Chapter 6: Object-Oriented Programming 253 6.1. Key Concepts 254 6.2. Custom Types 256 6.3. Interfaces 265 6.4. Structs 275 6.5. Examples 282 6.6. Exercises 311   Chapter 7: Concurrent Programming 315 7.1. Key Concepts317 7.2. Examples 322 7.3. Exercises 357   Chapter 8: File Handling 361 8.1. Custom Data Files 362 8.2. Archive Files 397 8.3. Exercises 405   Chapter 9: Packages 407 9.1. Custom Packages 408 9.2. Third-Party Packages 417 9.3. A Brief Survey of Go’s Commands 418 9.4. A Brief Survey of the Go Standard Library 419 9.5. Exercises 431   Appendix A: Epilogue 435 Appendix B: The Dangers of Software Patents 437 Appendix C: Selected Bibliography 441   Index 443  


Best Sellers


Product Details
  • ISBN-13: 9780321774637
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Height: 229 mm
  • No of Pages: 496
  • Sub Title: Creating Applications for the 21st Century
  • Width: 181 mm
  • ISBN-10: 0321774639
  • Publisher Date: 17 May 2012
  • Binding: Paperback
  • Language: English
  • Spine Width: 27 mm
  • Weight: 782 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Programming in Go: Creating Applications for the 21st Century
Pearson Education (US) -
Programming in Go: Creating Applications for the 21st Century
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Programming in Go: Creating Applications for the 21st Century

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!