Muutke küpsiste eelistusi

Go Programming Language For Dummies [Pehme köide]

  • Formaat: Paperback / softback, 336 pages, kõrgus x laius x paksus: 234x185x23 mm, kaal: 454 g
  • Ilmumisaeg: 24-Jun-2021
  • Kirjastus: For Dummies
  • ISBN-10: 1119786193
  • ISBN-13: 9781119786191
Teised raamatud teemal:
  • Pehme köide
  • Hind: 31,06 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 36,54 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 336 pages, kõrgus x laius x paksus: 234x185x23 mm, kaal: 454 g
  • Ilmumisaeg: 24-Jun-2021
  • Kirjastus: For Dummies
  • ISBN-10: 1119786193
  • ISBN-13: 9781119786191
Teised raamatud teemal:
Explains how to get to know Go programming, work with data types, use loops for repetitive tasks, add structure to data, organize your code, put Go into action, find resources to expand your knowledge and much more. Original.

Ready, set, program with Go! 

Now is the perfect time to learn the Go Programming Language. It’s one of the most in-demand languages among tech recruiters and developers love its simplicity and power. Go Programming Language For Dummies is an easy way to add this top job skill to your toolkit. Written for novice and experienced coders alike, this book traverses basic syntax, writing functions, organizing data, building packages, and interfacing with APIs. 

Go—or GoLang, as it’s also known—has proven to be a strong choice for developers creating applications for the cloud-based world we live in. This book will put you on the path to using the language that’s created some of  today’s leading web applications, so you can steer your career where you want to Go! 

  • Learn how Go works and start writing programs and modules 
  • Install and implement the most powerful third-party Go packages 
  • Use Go in conjunction with web services and MySQL databases 
  • Keep your codebase organized and use Go to structure data 

With this book, you can join the growing numbers of developers using Go to create 21st century solutions. Step inside to take start writing code that puts data in users’ hands. 

Introduction 1(4)
About This Book
1(1)
Foolish Assumptions
2(1)
Icons Used in This Book
2(1)
Beyond the Book
3(1)
Where to Go from Here
3(2)
PART 1 GETTING STARTED WITH GO
5(74)
Chapter 1 Hello, Go!
7(16)
Seeing What Learning Go Can Do for You
8(1)
Installing Go on Your Machine
9(1)
Macos
10(1)
Windows
11(1)
Using an Integrated Development Environment with Go
12(2)
Writing Your First Go Program
14(1)
Compiling and running the program
15(2)
Understanding how a Go program works
17(1)
Making sense of the Go file structure
18(1)
Compiling for multiple operating systems
19(2)
Comparing Go with Other Languages
21(1)
Syntax
21(1)
Compilation
22(1)
Concurrency
22(1)
Library support
22(1)
Chapter 2 Working with Different Data Types
23(14)
Declaring Always-Changing Variables
24(1)
Using the var keyword: Type-inferred variables
24(1)
Specifying the data type: Explicitly typed variables
25(1)
Using the short variable declaration operator
26(1)
Declaring Never-Changing Constants
27(1)
Removing Unused Variables
27(2)
Dealing with Strings
29(1)
Performing Type Conversions
30(1)
Discovering the type of a variable
31(1)
Converting a variable's type
32(2)
Interpolating strings
34(3)
Chapter 3 Making Decisions
37(14)
Using If/Else Statements to Make Decisions
37(1)
Laying the foundation for the if/else statement: Logical and comparison operators
38(2)
Using the if/else statement
40(2)
Short-circuiting: Evaluating conditions in Go
42(4)
When You Have Too Many Conditions: Using the Switch Statement
46(1)
Switching with fall-throughs
47(1)
Matching multiple cases
48(1)
Switching without condition
48(3)
Chapter 4 Over and Over and Over: Using Loops
51(14)
Performing Loops Using the for Statement
51(5)
Iterating over a Range of Values
56(1)
Iterating through arrays/slices
56(2)
Iterating through a string
58(1)
Using Labels with the for Loop
59(6)
Chapter 5 Grouping Code into Functions
65(14)
Defining a Function
65(1)
Defining functions with parameters
66(2)
Defining functions with multiple parameters
68(1)
Passing arguments by value and by pointer
68(3)
Returning values from functions
71(1)
Naming return values
72(1)
Working with variadic functions
72(1)
Using Anonymous Functions
73(1)
Declaring an anonymous function
73(1)
Implementing closure using anonymous functions
74(2)
Implementing the filter() function using closure
76(3)
PART 2 WORKING WITH DATA STRUCTURES
79(84)
Chapter 6 Slicing and Dicing Using Arrays and Slices
81(20)
Arming Yourself to Use Arrays
81(1)
Declaring an array
82(1)
Initializing an array
83(1)
Working with multidimensional arrays
83(3)
Sleuthing Out the Secrets of Slices
86(1)
Creating an empty slice
86(2)
Creating and initializing a slice
88(1)
Appending to a slice
88(4)
Slicing and Ranging
92(1)
Extracting part of an array or slice
92(3)
Iterating through a slice
95(1)
Making copies of an array or slice
95(2)
Inserting an item into a slice
97(2)
Removing an item from a slice
99(2)
Chapter 7 Defining the Blueprints of Your Data Using Structs
101(12)
Defining Structs for a Collection of Items
101(3)
Creating a Go Struct
104(1)
Making a Copy of a Struct
105(2)
Defining Methods in Structs
107(3)
Comparing Structs
110(3)
Chapter 8 Establishing Relationships Using Maps
113(16)
Creating Maps in Go
113(2)
Initializing a map with a map literal
115(1)
Checking the existence of a key
115(1)
Deleting a key
116(1)
Getting the number of items in a map
116(1)
Iterating over a map
117(1)
Getting all the keys in a map
117(1)
Setting the iteration order in a map
118(1)
Sorting the items in a map by values
118(3)
Using Structs and Maps in Go
121(1)
Creating a map of structs
121(3)
Sorting a map of structs
124(5)
Chapter 9 Encoding and Decoding Data UsingJSON
129(22)
Getting Acquainted with JSON
129(1)
Object
130(1)
String
130(1)
Boolean
131(1)
Number
131(1)
Object
132(1)
Array
132(1)
Null
133(1)
DecodingJSON
134(1)
Decoding JSON to a struct
135(1)
DecodingJSON to arrays
136(1)
Decoding embedded objects
137(3)
Mapping custom attribute names
140(1)
Mapping unstructured data
141(3)
Encoding JSON
144(1)
Encoding structs to JSON
144(4)
Encoding interfaces to JSON
148(3)
Chapter 10 Defining Method Signatures Using Interfaces
151(12)
Working with Interfaces in Go
152(1)
Defining an interface
152(1)
Implementing an interface
153(1)
Looking at How You May Use Interfaces
154(4)
Adding methods to a type that doesn't satisfy an interface
158(1)
Using the Stringer interface
159(1)
Implementing multiple interfaces
160(1)
Using an empty interface
161(1)
Determining whether a value implements a specific interface
162(1)
PART 3 MULTITASKING IN GO
163(32)
Chapter 11 Threading Using Goroutines
165(14)
Understanding Goroutines
166(2)
Using Goroutines with Shared Resources
168(1)
Seeing how shared resources impact goroutines
168(3)
Accessing shared resources using mutual exclusion
171(1)
Using atomic counters for modifying shared resources
172(2)
Synchronizing Goroutines
174(5)
Chapter 12 Communicating between Goroutines Using Channels
179(16)
Understanding Channels
179(1)
How channels work
180(3)
How channels are used
183(3)
Iterating through Channels
186(1)
Asynchronously Waiting on Channels
187(5)
Using Buffered Channels
192(3)
PART 4 ORGANIZING YOUR CODE
195(28)
Chapter 13 Using and Creating Packages in Go
197(14)
Working with Packages
197(3)
Creating shareable packages
200(2)
Organizing packages using directories
202(2)
Using Third-Party Packages
204(1)
EmojisforGo
204(1)
Go Documentation
205(6)
Chapter 14 Grouping Packages into Modules
211(12)
Creating a Module
211(3)
Testing and Building a Module
214(2)
Publishing a Module on GitHub
216(7)
PART 5 SEEING GO IN ACTION
223(62)
Chapter 15 Consuming Web APIs Using Go
225(18)
Understanding Web APIs
225(1)
Fetching Data from Web Services in Go
226(1)
Writing a Go program to connect to a web API
227(2)
DecodingJSON data
229(4)
Refactoring the code for decodingJSON data
233(5)
Fetching from multiple web services at the same time
238(1)
Returning Coroutine's results to the main() function
239(4)
Chapter 16 Getting Ready to Serve Using REST APIs
243(28)
Building Web Services Using REST APIs
243(1)
HTTP messages
244(1)
REST URLs
244(2)
REST methods
246(2)
REST response
248(1)
Creating a REST API in Go
249(1)
Getting your REST API up and running
249(2)
Testing the REST API
251(1)
Registering additional paths
251(3)
Passing in query string
254(1)
Specifying request methods
255(2)
Storing the course information on the REST API
257(10)
Testing the REST API again
267(4)
Chapter 17 Working with Databases
271(14)
Setting Up a MySQL Database Server
272(1)
Interfacing with the MySQL server
272(2)
Creating a database and table
274(1)
Creating a new account and granting permission
275(1)
Connecting to the MySQL Database in Go
276(2)
Retrieving a record
278(2)
Adding a record
280(1)
Modifying a record
281(2)
Deleting a record
283(2)
PART 6 THE PART OF TENS
285(18)
Chapter 18 Ten Useful Go Packages to Create Applications
287(12)
Color
287(1)
Installation
288(1)
Code sample
288(1)
Now
288(1)
Installation
288(1)
Code sample
288(1)
Go-pushbullet
289(1)
Installation
289(1)
Code sample
289(1)
Goid
290(1)
Installation
290(1)
Code sample
290(1)
Json2Go
291(1)
Installation
291(1)
Code sample
291(1)
Gojq
292(1)
Installation
293(1)
Code sample
293(1)
Turtle
294(1)
Installation
294(1)
Code sample
294(1)
Go-http-client
295(1)
Installation
295(1)
Code sample
295(1)
Notify
296(1)
Installation
296(1)
Code sample
296(1)
Gosx-notifier
297(1)
Installation
297(1)
Code sample
297(2)
Chapter 19 Ten Great Go Resources
299(4)
The Official Go Website
299(1)
Go by Example
300(1)
A Tour of Go
300(1)
The Go Frequently Asked Questions
300(1)
The Go Playground
300(1)
Go Bootcamp
301(1)
Effective Go
301(1)
Gophercises
301(1)
Tutorialspoint
301(1)
Stack Overflow
302(1)
Index 303
Wei-Meng Lee is founder of Developer Learning Solutions, specializing in hands-on technology training. His name regularly appears in publications like DevX.com, MobiForge.com, and CODE Magazine. He is also the author of SwiftUI For Dummies, Beginning Swift Programming, Python Machine Learning, and Learning WatchKit Programming.