Programming in Go: Creating Applications for the 21st Century (Developer's Library)

By Mark Summerfield

Your Hands-On advisor to head, the innovative New Language Designed for Concurrency, Multicore undefined, and Programmer Convenience

 

Today’s most enjoyable new programming language, pass, is designed from the floor as much as assist you simply leverage all of the strength of today’s multicore undefined. With this advisor, pioneering pass programmer Mark Summerfield indicates the best way to write code that takes complete benefit of Go’s step forward positive aspects and idioms.

 

Both an academic and a language reference, Programming in Go brings jointly all of the wisdom you must evaluation cross, imagine in move, and write high-performance software program with cross. Summerfield provides a number of idiom comparisons displaying precisely how move improves upon older languages, calling particular cognizance to Go’s key techniques. alongside the way in which, he explains every thing from absolutely the fundamentals via Go’s lock-free channel-based concurrency and its versatile and weird duck-typing type-safe method of object-orientation.

 

Throughout, Summerfield’s strategy is punctiliously useful. each one bankruptcy bargains a number of dwell code examples designed to inspire experimentation and assist you speedy improve mastery. anyplace attainable, entire courses and applications are offered to supply life like use instances, in addition to routines. insurance includes

 

  • Quickly getting and fitting move, and construction and working cross programs
  • Exploring Go’s syntax, beneficial properties, and wide common library
  • Programming Boolean values, expressions, and numeric types
  • Creating, evaluating, indexing, cutting, and formatting strings
  • Understanding Go’s hugely effective integrated assortment forms: slices and maps
  • Using pass as a procedural programming language
  • Discovering Go’s strange and versatile method of item orientation
  • Mastering Go’s distinctive, basic, and average method of fine-grained concurrency
  • Reading and writing binary, textual content, JSON, and XML files
  • Importing and utilizing ordinary library applications, customized applications, and third-party packages
  • Creating, documenting, unit trying out, and benchmarking customized packages

Show description

Quick preview of Programming in Go: Creating Applications for the 21st Century (Developer's Library) PDF

Show sample text content

The constitution of the publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 four five bankruptcy 1. an outline in 5 Examples . . . . . . . . . . . . . . . . . . . . . . . . 1. 1. Getting Going . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. 2. enhancing, Compiling, and operating . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. three. hi Who? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. four. large Digits—Two-Dimensional Slices . . . . . . . . . . . . . . . . . . . . . . . . . . 1. five. Stack—Custom kinds with equipment .

Five. 6. 1. three. features with a number of not obligatory Arguments . . . . . . . . five. 6. 2. The init() and main() capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . five. 6. three. Closures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . five. 6. four. Recursive services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . five. 6. five. picking out services at Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . five. 6. five. 1. Branching utilizing Maps and serve as References . . . . five. 6. five. 2. Dynamic functionality construction . . . . . . . . . . . . . . . . . . . . . . . . five. 6. 6. widespread services . . . . . . . . . . . . . . . . . . . . . . . . .

Three. 2. evaluating Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . three. three. Characters and Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . three. four. Indexing and cutting Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . three. five. String Formatting with the Fmt package deal . . . . . . . . . . . . . . . . . . . . . . three. five. 1. Formatting Booleans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . three. five. 2. Formatting Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . three. five. three. Formatting Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . three. five. four. Formatting Floating-Point Numbers .

2. three. 1. Integer forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. three. 1. 1. gigantic Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. three. 2. Floating-Point kinds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. three. 2. 1. advanced forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. four. instance: facts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. four. 1. enforcing basic information services . . . . . . . . . . . . . . . . 2. four. 2. enforcing a uncomplicated HTTP Server . . . . . . . . . . . . . . . . . . . . . . 2. five. routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seventy one 2. eleven. 60 three. 1. Go’s String and personality Escapes . . . . . . . . . . . . . . . . . . . . . . . . . . eighty four three. 2. String Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . eighty five three. three. The Fmt Package’s Print features . . . . . . . . . . . . . . . . . . . . . . . . . . ninety four three. four. The Fmt Package’s Verbs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ninety five three. five. The Fmt Package’s Verb Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . ninety six The Strings Package’s capabilities no 1 . . . . . . . . . . . . . . . . . . . . . . . . . . 108 three. 6. three. 7. three. eight. three. nine. three. 10. three. eleven. The Strings Package’s capabilities #2 . . . . . . . . . . . . . . . . .

Download PDF sample

Rated 4.77 of 5 – based on 30 votes