Security features and best practices in Go applications
A practical guide to securing Go applications: crypto, TLS, input handling, secrets, concurrency safety and tools like govulncheck, gosec and the race detector.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
A practical guide to securing Go applications: crypto, TLS, input handling, secrets, concurrency safety and tools like govulncheck, gosec and the race detector.
Go's net package makes TCP, UDP and HTTP programming straightforward. See servers, clients, deadlines, TLS and graceful shutdown with working code.
Go has errors as values instead of exceptions. Learn layered error handling, HTTP mapping, retries with errors.Join, testing and the mistakes to avoid.
Goroutines run work concurrently and channels pass data between them safely. Learn buffered channels, select, WaitGroup and a worker pool with runnable Go code.
Go runs lightweight goroutines on a runtime scheduler and coordinates them with channels. See how that compares with threads in Python, Java and C++.
Go suits IoT through ARM cross-compilation for Linux boards and TinyGo for microcontrollers. See MQTT telemetry code, design tips and when to use each toolchain.
Go suits IoT gateways and embedded Linux with static binaries, networking and concurrency. See examples, and where MQTT and microcontrollers need other tools.
Use gomobile to share Go code with Android and iOS, Fyne or Gio for full apps, and TinyGo or cross-compilation for embedded devices. Examples and design tips.
Go fits mobile backends and embedded Linux well, and gomobile or TinyGo cover more targets. See what the standard library can and cannot do on each.
Go offers fast numerics, Gonum matrices and statistics, and easy parallelism for research workloads. Learn techniques, limits and where Python still wins.
See what Go's standard library offers for research code: CSV parsing, statistics, exact math, random sampling and parallelism, plus when Gonum is needed.
Go has no built-in graphics, but goroutines, the net package and Ebitengine make it a solid choice for 2D games, multiplayer servers and game backends.
Use Go's standard library for game logic, fixed-timestep loops, goroutine-based input and TCP multiplayer servers, and learn where rendering needs a library.
Go fits data pipelines and parallel processing. See streaming, batched worker pools, performance tuning, pprof profiling and Go's limits for HPC.
Go's standard library handles large data sets through streaming I/O, worker pools, compression and profiling. Learn the patterns with runnable examples.
Go's standard library covers hashing, signatures and AES-GCM. Build a small proof-of-work chain and learn which frameworks to use for real networks.
Go's crypto packages cover hashing, signatures and encryption. See a working hash-linked chain, Ed25519 signing and AES-GCM examples.
Go is a strong production language for ML: numerical work with Gonum, ONNX inference, LLM calls over HTTP and concurrent serving. Training usually stays in Python.
Go has no ML algorithms in its standard library, but it handles data loading, parallel preprocessing and prediction APIs well. See examples and when to add Gonum.
Go processes data with streaming I/O, generics and goroutine worker pools. See examples for parsing, aggregation, parallelism and basic statistics.