Caution
JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.
Dictionary
- Home
- Go Dictionary
Go Dictionary Index
| [Setup] Go Development Environment | Steps to set up an environment for installing and running Go. |
| Variable Declaration / Short Declaration | When to use var versus := declarations. |
| Basic Data Types | Integers, floating-point numbers, strings, and booleans. |
| Constants / iota | Defining constants and auto-generating sequential values. |
| Arrays / Slices | Differences between fixed-length arrays and variable-length slices. |
| Map | An associative array managed as key-value pairs. |
| Pointers | A mechanism for directly manipulating memory addresses. |
| Type Conversion / Type Assertion | Converting a value to a different type. |
| Zero Values | The initial value automatically set at declaration time. |
| if / else | Basics of conditional branching. |
| for | The only loop syntax in Go. |
| switch | Multi-way branching and type switches. |
| defer | A mechanism for deferring execution until a function ends. |
| goto / Labels | Label jumps and loop labels. |
| Function Definition / Multiple Return Values | Basics of Go functions and returning multiple values. |
| Variadic Functions | A function that accepts a variable number of arguments. |
| Closures / Anonymous Functions | Treating functions as values and capturing outer variables. |
| init() / main() | Special functions for initialization and the execution entry point. |
| panic() / recover() | Raising and recovering from runtime errors. |
| struct | A data structure that groups multiple fields together. |
| Methods / Receivers | Defining functions associated with a type. |
| interface | A type that defines behavior. |
| Type Aliases / Custom Types | Defining a new type based on an existing type. |
| Generics | Writing generic code using type parameters. |
| error Type / errors Package | Standard error handling patterns in Go. |
| fmt.Errorf() / %w | Wrapping errors and chaining causes. |
| Custom Error Types | Creating custom errors by implementing the Error() method. |
| goroutine | Achieving concurrent processing with lightweight threads. |
| channel | A mechanism for passing data between goroutines. |
| select | Waiting on multiple channels simultaneously. |
| sync.WaitGroup | A mechanism for waiting for goroutines to complete. |
| sync.Mutex / RWMutex | Exclusive access to shared resources. |
| fmt.Println() / Print() / Printf() | Writing to standard output. |
| fmt.Sprintf() / Fprintf() | String formatting and writing to a writer. |
| fmt.Scan() / Scanf() / Scanln() | Reading from standard input. |
| Format Verbs | A list of format verbs such as %v, %T, and %d. |
| strings.Contains() / HasPrefix() / HasSuffix() | Searching and checking strings. |
| strings.Split() / Join() / Replace() | Splitting, joining, and replacing strings. |
| strings.ToUpper() / ToLower() / TrimSpace() | Converting case and trimming strings. |
| strconv.Atoi() / Itoa() / ParseFloat() | Converting between strings and numbers. |
| os.Open() / Create() / Remove() | Opening, creating, and deleting files. |
| os.ReadFile() / WriteFile() | Reading and writing files all at once. |
| os.Args / os.Getenv() | Getting command-line arguments and environment variables. |
| io.Reader / Writer / bufio | I/O interfaces and buffering. |
| http.Get() / Post() | Sending requests with an HTTP client. |
| http.ListenAndServe() | Starting an HTTP server. |
| http.Request / ResponseWriter | Manipulating requests and responses. |
| http.ServeMux | URL routing mechanism. |
| json.Marshal() / Unmarshal() | Converting between Go and JSON. |
| json.Encoder / Decoder | Reading and writing JSON as a stream. |
| JSON Tags / omitempty | JSON field names and options for struct fields. |
| time.Now() / Sleep() / Format() | Getting the time, sleeping, and formatting. |
| math Package | Basic mathematical functions. |
| math/rand Package | Generating random numbers. |
| sort Package | Sorting slices. |
| regexp Package | Pattern matching with regular expressions. |
| Packages / import | Defining and importing packages. |
| Go Modules | Dependency management tool. |
| go build / run / test | Commonly used Go commands. |