How do you do data processing and computation in Go programs?
Process data efficiently in Go with streaming readers, generics, Go 1.23 iterators, bounded worker pools, math/big, and benchmarks.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
Process data efficiently in Go with streaming readers, generics, Go 1.23 iterators, bounded worker pools, math/big, and benchmarks.
Compare the main ways to store and retrieve data in Go, from files and JSON to database/sql and embedded key-value stores, with working examples.
Compare Go persistence options: JSON and CSV files, atomic writes, SQLite, client-server databases, and key-value stores, with safe patterns.
Security techniques protect data and traffic, access control decides who may act. See TLS, bcrypt, JWT and role-based middleware in Go.
A practical guide to encryption and security in Go: AES-GCM, secure randomness, password hashing, TLS servers, signatures and a hardening checklist.
IPC connects Go processes directly, while message-oriented middleware routes messages through a broker. Learn how they differ and when to use each.
Channels, pipes, Unix sockets, net/rpc and gRPC each fit a different boundary. See working Go code and when to choose each.
Go's networking packages move data between programs; cloud SDKs for AWS, Google Cloud, Azure and Kubernetes sit on top of them. Learn which to use and when.
Go offers TCP, UDP, HTTP and Unix sockets in the standard library, plus gRPC and brokers via modules. See when to use each, with examples and reliability tips.
The Go standard library is stable and bundled; custom libraries add specialised features at a maintenance cost. Learn how to choose, add and vet each in Go.
Use the standard library for core features and add third-party modules only for real gaps. Includes a working service and Go modules workflow.
Built-in slices and maps plus the slices, maps and cmp packages cover most tasks. Learn when a third-party library is actually worth adding.
Use Go slices, maps, strings and the generic slices and maps packages for sorting, searching, grouping and deduplication, with runnable examples.
Go's garbage collector frees memory for you, but files, sockets and goroutines must be released explicitly. See how defer, context and profiling fit together.
Go uses escape analysis and a concurrent mark-and-sweep garbage collector. Learn to tune GOGC and GOMEMLIMIT and reduce allocations.
Reflection works on types at run time, while go generate writes source at build time. Compare speed, safety and when to use each in Go.
Learn to inspect a running Go program: build info, goroutine counts, call stacks, memory metrics and GC tuning with the runtime packages.
Concurrency structures tasks and parallelism runs them simultaneously. See how goroutines, channels and the scheduler deliver both in Go.
A practical guide to concurrent and parallel programming in Go using goroutines, channels, sync primitives, worker pools, context and errgroup.
Go has no classes, yet structs, interfaces and embedding give it OOP-style design, while closures and generics enable functional style. Here is how to use both.