Category: Go

0

Chapter 22: Create Slice

Create slice. In almost every real Go program you will create slices many times per file — so understanding all the different ways to do it, together with their advantages, memory behavior and common...

0

Chapter 21: Go Slices

slices. After we talked about arrays (fixed-size, rarely used directly), now we come to slices — the dynamic, flexible, everyday “list” type that almost everyone confuses with arrays at first… but once you understand...

0

Chapter 20: Go Arrays

Arrays in Go are very different from what most beginners expect. They are almost never the first choice when you want a “list of things” — that role belongs to slices. Let’s go through...

0

Chapter 19: String

String data type. In beginner tutorials (Tour of Go, W3Schools, freeCodeCamp, GeeksforGeeks, etc.) the string section usually gets quite a bit of attention because: almost every program deals with text strings in Go behave...

0

Chapter 18: Float

Float Floating-point numbers are the ones that can represent decimal / fractional values (3.14, -0.001, 1.7976931348623157e+308, etc.). In Go, floating-point support is very simple and clean compared to many other languages: only two types...

0

Chapter 17: Integer

Integer data types. In Go, integers are very explicit — unlike Python (one int type) or JavaScript (everything becomes Number), Go gives you precise control over size and signedness. This is intentional: Go was...

0

Chapter 16: Boolean

1. What is the Boolean Type in Go? Name: bool Possible values: exactly two — true or false Zero value (default when not initialized): false Size in memory: usually 1 byte (implementation detail —...

0

Chapter 15: Go Data Types

Go Data Types — which usually means the full picture of types in Go, not just the primitives. In most tutorials (especially “A Tour of Go” style, W3Schools, GeeksforGeeks, YouTube beginner series), “Go Data Types”...

0

Chapter 14: Basic Data Types

Basic Data Types — the building blocks that every variable (or constant) in Go must have. Basic data types (also called primitive types or predeclared types) in Go are the simplest, built-in kinds of values...

0

Chapter 13: Formatting Verbs

Formatting Verbs. These are also called format verbs, placeholders, or % verbs. They are the special codes starting with % inside the format string that tell Printf how to display each argument. Go’s verbs...