Get Programming with Go
Nathan Youngman, Roger Peppéقیمت نهایی
۴۹٬۰۰۰ تومان
نسخه اصلی و اورجینال
بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.
تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی
مشخصات کتاب
- نویسنده
- Nathan Youngman, Roger Peppé
- سال انتشار
- ۲۰۱۸
- فرمت
- زبان
- انگلیسی
- حجم فایل
- ۴٫۵ مگابایت
دربارهٔ کتاب
SummaryGet Programming with Go introduces you to the powerful Go language without confusing jargon or high-level theory. By working through 32 quick-fire lessons, you'll quickly pick up the basics of the innovative Go programming language! Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.About the TechnologyGo is a small programming language designed by Google to tackle big problems. Large projects mean large teams with people of varying levels of experience. Go offers a small, yet capable, language that can be understood and used by anyone, no matter their experience.About the BookHobbyists, newcomers, and professionals alike can benefit from a fast, modern language; all you need is the right resource! Get Programming with Go provides a hands-on introduction to Go language fundamentals, serving as a solid foundation for your future programming projects. You'll master Go syntax, work with types and functions, and explore bigger ideas like state and concurrency, with plenty of exercises to lock in what you learn.What's insideLanguage concepts like slices, interfaces, pointers, and concurrencySeven capstone projects featuring spacefaring gophers, Mars rovers, ciphers, and simulationsAll examples run in the Go Playground - no installation required!About the ReaderThis book is for anyone familiar with computer programming, as well as anyone with the desire to learn.About the AuthorNathan Youngman organizes the Edmonton Go meetup and is a mentor with Canada Learning Code. Roger Peppé contributes to Go and runs the Newcastle upon Tyne Go meetup.Table of ContentsUnit 0 - GETTING STARTEDGet ready, get set, Go Unit 1 - IMPERATIVE PROGRAMMINGA glorified calculator Loops and branches Variable scope Capstone: Ticket to MarsUnit 2 - TYPESReal numbers Whole numbers Big numbers Multilingual text Converting between types Capstone: The Vigenère cipher Unit 3 - BUILDING BLOCKSFunctions Methods First-class functions Capstone: Temperature tables Unit 4 - COLLECTIONSArrayed in splendor Slices: Windows into arrays A bigger slice The ever-versatile map Capstone: A slice of life Unit 5 - STATE AND BEHAVIORA little structure Go's got no class Composition and forwarding Interfaces Capstone: Martian animal sanctuary Unit 6 - DOWN THE GOPHER HOLEA few pointers Much ado about nil To err is human Capstone: Sudoku rules Unit 7 - CONCURRENT PROGRAMMINGGoroutines and concurrency Concurrent state Capstone: Life on Mars Contents......Page 3 Preface......Page 5 About this Book......Page 6 1 Get ready, get set, Go......Page 10 1.1 What is Go?......Page 12 1.2 The Go Playground......Page 13 1.3 Packages and functions......Page 14 1.4 The one true brace style......Page 16 Summary......Page 17 Imperative programming......Page 18 2 Glorified calculator......Page 19 2.1 Performing calculations......Page 20 2.2 Formatted print......Page 21 2.3 Constants and variables......Page 23 2.4.1 Declare multiple variables at once......Page 24 2.4.2 Increment and assignment operators......Page 25 2.5 Think of a number......Page 26 Summary......Page 27 3 Loops & branches......Page 29 3.1 True or false......Page 30 3.2 Comparisons......Page 31 3.3 Branching with if......Page 32 3.4 Logical operators......Page 33 3.5 Branching with switch......Page 36 3.6 Repetition with loops......Page 37 Summary......Page 39 4 Variable scope......Page 40 4.1 Looking into scope......Page 41 4.2 Short declaration......Page 42 4.3 Narrow scope, wide scope......Page 44 Summary......Page 46 5 Capstone - Ticket to Mars......Page 47 Types......Page 49 6 Real numbers......Page 50 6.1 Declaring floating-point variables......Page 51 6.1.2 The zero value......Page 52 6.2 Displaying floating-point types......Page 53 6.3 Floating-point accuracy......Page 54 Summary......Page 56 7 Whole numbers......Page 58 7.1.1 Integer types for every occasion......Page 59 7.1.2 Knowing your type......Page 60 7.2 The uint8 type for 8-bit colors......Page 61 7.3.1 Looking at the bits......Page 63 7.3.2 Avoid wrapping around time......Page 65 Summary......Page 66 8 Big numbers......Page 67 8.1 Hitting the ceiling......Page 68 8.2 The big package......Page 69 8.3 Constants of unusual size......Page 71 Summary......Page 72 9 Multilingual text......Page 73 9.1.1 Raw string literals......Page 74 9.2 Characters, code points, runes, and bytes......Page 75 9.3 Pulling the strings......Page 77 9.4 Manipulating characters with Caesar cipher......Page 78 9.4.1 A modern variant......Page 79 9.5 Decoding strings into runes......Page 80 Summary......Page 82 10 Converting btw types......Page 84 10.1 Types don?t mix......Page 85 10.2 Numeric type conversions......Page 86 10.3 Convert types with caution......Page 87 10.4 String conversions......Page 89 10.5 Converting Boolean values......Page 91 Summary......Page 92 11 Capstone - Vigenere cipher......Page 93 Building blocks......Page 96 12 Functions......Page 97 12.1 Function declarations......Page 98 12.2 Writing a function......Page 102 Summary......Page 103 13 Methods......Page 105 13.1 Declaring new types......Page 106 13.2 Bring your own types......Page 108 13.3 Adding behavior to types with methods......Page 109 Summary......Page 111 14 First-class functions......Page 112 14.1 Assigning functions to variables......Page 113 14.2 Passing functions to other functions......Page 114 14.4 Closures and anonymous functions......Page 116 Summary......Page 120 15 Capstone - Temperature tables......Page 121 Collections......Page 123 16 Arrayed in splendor......Page 124 16.1 Declaring arrays and accessing their elements......Page 125 16.2 Don?t go out of bounds......Page 126 16.3 Initialize arrays with composite literals......Page 127 16.4 Iterating through arrays......Page 128 16.5 Arrays are copied......Page 129 16.6 Arrays of arrays......Page 131 Summary......Page 132 17 Slices - windows into arrays......Page 133 17.1 Slicing an array......Page 134 17.1.1 Default indices for slicing......Page 135 17.2 Composite literals for slices......Page 136 17.3 The power of slices......Page 137 17.4 Slices with methods......Page 139 Summary......Page 140 18 Bigger slice......Page 141 18.1 The append function......Page 142 18.2 Length and capacity......Page 143 18.3 Investigating the append function......Page 144 18.4 Three-index slicing......Page 145 18.5 Preallocate slices with make......Page 146 18.6 Declaring variadic functions......Page 147 Summary......Page 148 19 Ever-versatile map......Page 149 19.1 Declaring a map......Page 150 19.2 Maps aren?t copied......Page 152 19.4 Using maps to count things......Page 153 19.5 Grouping data with maps and slices......Page 154 19.6 Repurposing maps as sets......Page 155 Summary......Page 156 20 Capstone - slice of life......Page 158 20.1.2 Seeding live cells......Page 159 20.2.2 Counting neighbors......Page 160 20.3 Parallel universe......Page 161 State & behavior......Page 162 21 A little structure......Page 163 21.1 Declaring a structure......Page 164 21.2 Reusing structures with types......Page 165 21.3 Initialize structures with composite literals......Page 166 21.4 Structures are copied......Page 167 21.5 A slice of structures......Page 168 21.6 Encoding structures to JSON......Page 169 21.7 Customizing JSON with struct tags......Page 170 Summary......Page 171 22 Go's got no class......Page 172 22.1 Attaching methods to structures......Page 173 22.2 Constructor functions......Page 174 22.3 The class alternative......Page 176 Summary......Page 178 23 Composition & forwarding......Page 179 23.1 Composing structures......Page 180 23.2 Forwarding methods......Page 183 23.3 Name collisions......Page 185 Summary......Page 187 24 Interfaces......Page 188 24.1 The interface type......Page 189 24.2 Discovering the interface......Page 192 24.3 Satisfying interfaces......Page 195 24.4 Summary......Page 197 25 Capstone - Animal sanctuary......Page 198 Down the gopher hole......Page 200 26 A few pointers......Page 201 26.1 The ampersand and the asterisk......Page 202 26.1.1 Pointer types......Page 204 26.2 Pointers are for pointing......Page 205 26.2.1 Pointing to structures......Page 208 26.2.2 Pointing to arrays......Page 209 26.3.1 Pointers as parameters......Page 210 26.3.2 Pointer receivers......Page 211 26.3.3 Interior pointers......Page 213 26.3.4 Mutating arrays......Page 214 26.4.2 Slices point at arrays......Page 215 26.5 Pointers and interfaces......Page 216 Summary......Page 218 27 Much ado about nil......Page 220 27.1 Nil leads to panic......Page 221 27.2 Guarding your methods......Page 223 27.3 Nil function values......Page 224 27.4 Nil slices......Page 225 27.5 Nil maps......Page 226 27.6 Nil interfaces......Page 227 27.7 An alternative to nil......Page 228 Summary......Page 229 28 To err is human......Page 230 28.1 Handling errors......Page 231 28.2.1 Writing a file......Page 233 28.2.2 The defer keyword......Page 235 28.2.3 Creative error handling......Page 236 28.3 New errors......Page 238 28.3.1 Which error is which......Page 240 28.3.2 Custom error types......Page 241 28.4 Don?t panic......Page 244 28.4.2 How to panic......Page 245 28.4.3 Keep calm and carry on......Page 246 Summary......Page 247 29 Capstone - Sudoku rules......Page 248 Concurrent programming......Page 250 30 Goroutines & concurrency......Page 251 30.1 Starting a goroutine......Page 252 30.2 More than one goroutine......Page 254 30.3 Channels......Page 255 30.4 Channel surfing with select......Page 258 30.5 Blocking and deadlock......Page 260 30.6 A gopher assembly line......Page 261 Summary......Page 265 31 Concurrent state......Page 267 31.1 Mutexes......Page 268 31.1.1 Mutex pitfalls......Page 271 31.2 Long-lived workers......Page 272 Summary......Page 279 32.1 A grid to rove on......Page 280 32.2 Reporting discoveries......Page 281 Where to Go from here......Page 283 Lesson 1......Page 285 Lesson 3......Page 286 Lesson 4......Page 287 Capstone 5......Page 288 Lesson 7......Page 289 Lesson 8......Page 290 Lesson 9......Page 291 Capstone 11......Page 292 Lesson 13......Page 294 Lesson 14......Page 295 Capstone 15......Page 296 Lesson 16......Page 298 Lesson 17......Page 299 Lesson 19......Page 300 Capstone 20......Page 301 Lesson 22......Page 304 Lesson 23......Page 308 Lesson 24......Page 310 Capstone 25......Page 312 Lesson 26......Page 315 Lesson 27......Page 316 Lesson 28......Page 317 Capstone 29......Page 318 Lesson 30......Page 322 Lesson 31......Page 324 Capstone 32......Page 327 Index......Page 336 Get Programming With Go Introduces You To The Powerful Go Language Without Confusing Jargon Or High-level Theory. By Working Through 32 Quick-fire Lessons, You'll Quickly Pick Up The Basics Of The Innovative Go Programming Language! Purchase Of The Print Book Includes A Free Ebook In Pdf, Kindle, And Epub Formats From Manning Publications. About The Technology: Go Is A Small Programming Language Designed By Google To Tackle Big Problems. Large Projects Mean Large Teams With People Of Varying Levels Of Experience. Go Offers A Small, Yet Capable, Language That Can Be Understood And Used By Anyone, No Matter Their Experience. About The Book: Hobbyists, Newcomers, And Professionals Alike Can Benefit From A Fast, Modern Language; All You Need Is The Right Resource! Get Programming With Go Provides A Hands-on Introduction To Go Language Fundamentals, Serving As A Solid Foundation For Your Future Programming Projects. You'll Master Go Syntax, Work With Types And Functions, And Explore Bigger Ideas Like State And Concurrency, With Plenty Of Exercises To Lock In What You Learn. What's Inside: Language Concepts Like Slices, Interfaces, Pointers, And Concurrency Seven Capstone Projects Featuring Spacefaring Gophers, Mars Rovers, Ciphers, And Simulations All Examples Run In The Go Playground - No Installation Required! About The Reader: This Book Is For Anyone Familiar With Computer Programming, As Well As Anyone With The Desire To Learn. Get Programming with Go introduces you to the powerful Go language without confusing jargon or high-level theory. By working through 32 quick-fire lessons, you'll quickly pick up the basics of the innovative Go programming language! Hobbyists, newcomers, and professionals alike can benefit from a fast, modern language; all you need is the right resource! Get Programming with Go provides a hands-on introduction to Go language fundamentals, serving as a solid foundation for your future programming projects. You'll master Go syntax, work with types and functions, and explore bigger ideas like state and concurrency, with plenty of exercises to lock in what you learn. What's inside * Language concepts like slices, interfaces, pointers, and concurrency * Seven capstone projects featuring spacefaring gophers, Mars rovers, ciphers, and simulations * All examples run in the Go Playground - no installation required! This book is for anyone familiar with computer programming, as well as anyone with the desire to learn. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. "Go is a small programming language designed by Google to tackle big problems. Large projects mean large teams with people of varying levels of experience. Go offers a small, yet capable, language that can be understood and used by anyone, no matter their experience. Hobbyists, newcomers, and professionals alike can benefit from a fast, modern language; all you need is the right resource! Get Programming with Go provides a hands-on introduction to Go language fundamentals, serving as a solid foundation for your future programming projects. You'll master Go syntax, work with types and functions, and explore bigger ideas like state and concurrency, with plenty of exercises to lock in what you learn. Language concepts like slices, interfaces, pointers, and concurrency Seven capstone projects featuring spacefaring gophers, Mars rovers, ciphers, and simulations All examples run in the Go Playground - no installation required! This book is for anyone familiar with computer programming, as well as anyone with the desire to learn."--Page 4 de la couverture
کتابهای مشابه
Get Programming with Go
۴۹٬۰۰۰ تومان
Get Programming with Go
۴۹٬۰۰۰ تومان
Get Programming with Go
۴۹٬۰۰۰ تومان
Get Programming with Go
۴۹٬۰۰۰ تومان
Get Programming with Go
۴۹٬۰۰۰ تومان
Go Programming
۴۹٬۰۰۰ تومان
From The Get Go
۴۹٬۰۰۰ تومان
Going Gets Hot
۴۹٬۰۰۰ تومان
The go programming language
۴۹٬۰۰۰ تومان
The Go Programming Language
۴۹٬۰۰۰ تومان
An Introduction to Programming in Go
۴۹٬۰۰۰ تومان
Go Programming by Example
۴۹٬۰۰۰ تومان
قیمت نهایی
۴۹٬۰۰۰ تومان
