Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 2.66 KB

File metadata and controls

74 lines (55 loc) · 2.66 KB

Glossary of GoLang Terms and Concepts

A

Array

A fixed-size collection of elements of the same data type. The size of an array is determined at the time of declaration and cannot be changed during program execution.

B

Buffer

A temporary storage area used to hold data before it is processed or transferred.

C

Channel

A communication mechanism that allows Goroutines to send and receive data. Channels ensure synchronized and safe communication between concurrent processes.

Concurrency

The ability of a program to handle multiple tasks concurrently. In GoLang, concurrency is achieved through Goroutines and channels.

D

Defer

A statement used to ensure that a function call is executed later, usually before the enclosing function exits.

E

Error Interface

An interface type that represents an error condition. The error interface has a single method, Error(), which returns the error message.

G

Goroutine

A lightweight, independently executing function in GoLang. Goroutines enable concurrent execution of tasks without creating multiple threads.

I

Interface

A collection of method signatures that a type can implement. Interfaces enable polymorphism and loose coupling.

J

JSON (JavaScript Object Notation)

A lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate.

M

Mutex

A synchronization primitive used to prevent multiple Goroutines from accessing shared resources simultaneously.

P

Package

A collection of related Go files that organize code and provide modularity. Packages are the fundamental unit of code organization in GoLang.

R

Reflection

The ability of a program to examine and manipulate its own structure and behavior at runtime.

S

Slice

A dynamic and flexible data structure that provides a view into an underlying array. Slices allow for efficient manipulation and management of sequences of data.

Struct

A user-defined composite type that groups together fields of different data types under a single name.

T

Type Assertion

A mechanism used to access the underlying concrete value of an interface when the specific type is known.

Type Introspection

The ability to inspect the properties and methods of a type at runtime, usually achieved through reflection.

U

Unit Testing

The practice of testing individual units of code in isolation to ensure their correctness and reliability.

V

Variable

A named storage location in memory that holds a value of a specific data type.

W

WaitGroup

A synchronization primitive used to wait for a collection of Goroutines to finish executing before proceeding.