Introducing Go build reliable, scalable programs

Perfect for beginners familiar with programming basics, this hands-on guide provides an easy introduction to Go, the general-purpose programming language from Google. Author Caleb Doxsey covers the language’s core features with step-by-step instructions and exercises in each chapter to help you prac...

Descripción completa

Detalles Bibliográficos
Otros Autores: Doxsey, Caleb, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol, CA : O'Reilly 2016.
Edición:First edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629910806719
Tabla de Contenidos:
  • Copyright; Table of Contents; Introduction; Who Should Read This Book; Navigating This Book; Online Resources; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Chapter 1. Getting Started; Machine Setup; Text Editors; The Terminal; Environment; Go; Your First Program; How to Read a Go Program; Exercises; Chapter 2. Types; Numbers; Integers; Floating-Point Numbers; Example; Strings; Booleans; Exercises; Chapter 3. Variables; How to Name a Variable; Scope; Constants; Defining Multiple Variables; An Example Program; Exercises
  • Chapter 4. Control StructuresThe for Statement; The if Statement; The switch Statement; Exercises; Chapter 5. Arrays, Slices, and Maps; Arrays; Slices; append; copy; Maps; Exercises; Chapter 6. Functions; Your Second Function; Variadic Functions; Closure; Recursion; defer, panic, and recover; panic and recover; Pointers; The * and & operators; new; Exercises; Chapter 7. Structs and Interfaces; Structs; Initialization; Fields; Methods; Embedded Types; Interfaces; Exercises; Chapter 8. Packages; The Core Packages; Strings; Input/Output; Files and Folders; Errors; Containers and Sort
  • Hashes and CryptographyServers; TCP; HTTP; RPC; Parsing Command-Line Arguments; Creating Packages; Documentation; Exercises; Chapter 9. Testing; Exercises; Chapter 10. Concurrency; Goroutines; Channels; Channel Direction; Select; Buffered Channels; An Example; Exercises; Chapter 11. Next Steps; Study the Masters; Make Something; Team Up; Appendix A. Answers; Index; About the Author