How does Go support user interface and front-end programming?
Go builds web, terminal and desktop interfaces. See html/template, htmx, WebAssembly, Bubble Tea and Fyne, and when each approach fits.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
Go builds web, terminal and desktop interfaces. See html/template, htmx, WebAssembly, Bubble Tea and Fyne, and when each approach fits.
Use Go's net/http, html/template and embed packages for server-rendered pages, static assets and JSON APIs, and see where a GUI toolkit is needed.
Go handles graphics with the image packages, Ebitengine, Fyne and OpenGL bindings, and media with FFmpeg and audio libraries. See examples and library choices.
Go's standard library handles PNG, JPEG and GIF images and HTTP media serving, but not resizing, text, WebP or audio and video codecs. See working examples.
Go compiles to one static binary you can cross-compile and ship in a tiny container. See the commands, flags and pipelines for reliable builds and deployments.
Learn Go's build and deployment toolchain: go build flags, cross-compilation, go install, testing, embed and a multi-stage Docker image.
Go has testing, benchmarking, fuzzing and profiling built in. See table-driven tests, the race detector, pprof and Delve debugging with current Go examples.
A practical guide to Go testing and debugging: table-driven tests, benchmarks, fuzzing, httptest, race detection, coverage, pprof and slog.
Go's crypto packages cover AES-GCM, hashing, signatures and TLS. See safe patterns for encryption, passwords and secure coding in Go programs.
Use Go's crypto packages correctly: SHA-256 hashing, HMAC, AES-GCM authenticated encryption, secure random tokens, password hashing and TLS.
Go's static binaries, fast startup and concurrency suit the cloud. See SDK examples, a graceful HTTP service, container builds and deployment options.
Use net/http, slog, context and os/signal to build a cloud-ready Go service with health checks, timeouts and graceful shutdown.
Build web servers and JSON APIs with Go's standard library. Covers ServeMux routing, middleware, timeouts, graceful shutdown and httptest.
Build a complete Go HTTP service with net/http: method and wildcard routing, JSON handling, middleware, templates, timeouts, testing and graceful shutdown.
Go handles data with database/sql, file APIs and encoders. See current examples for queries, transactions, file I/O and concurrency-safe in-memory data.
Learn database/sql in Go: connection pooling, parameterised queries, scanning rows, transactions and other standard-library storage options.
Go's net package offers TCP, UDP and Unix sockets with goroutines per connection. Learn deadlines, framing, graceful shutdown and common pitfalls.
Learn how Go's net, net/http and crypto/tls packages build TCP servers, HTTP APIs and clients, with deadlines, contexts and graceful shutdown.
Compare cgo, c-shared libraries, gRPC, subprocesses and WebAssembly for connecting Go with C, Python and other languages, with working examples.
Go has no built-in cross-process locks. See how to use sockets, pipes, gRPC, file locks and etcd or Redis locks for distributed and parallel Go systems.