News

DEV Community
dev. to > emrecodes > til-streaming-data-in-go-with-iter-and-yield-c93

TIL: Streaming Data in Go with iter and yield

1+ hour, 59+ min ago  (200+ words) The iter package introduces two types. Seq[V] yields a single value at a time, and Seq2[K, V] yields a pair: Seq2 is the right fit here because each iteration naturally produces two things: a parsed unit and any read error....

Symbols: nyse:go
DEV Community
dev. to > erintomorri > david-just-beat-goliath-on-terminal-bench-21-2d32

David Just Beat Goliath on Terminal-Bench 2. 1

3+ hour, 48+ min ago  (320+ words) The story goes that Goliath showed up in armor, backed by an army, and everyone assumed the fight was already decided. Then a shepherd with a sling walked out instead, and the size of the opponent stopped being the thing…...

Symbols: nasdaq:pltr
DEV Community
dev. to > gabrielanhaia > debugging-go-with-delve-beyond-fmtprintln-14dh

Debugging Go With Delve: Beyond fmt. Println

5+ hour, 55+ min ago  (560+ words) Stop printf-debugging Go. Learn Delve breakpoints, conditional breakpoints, goroutine inspection, and attaching to a live process. Tagged with go, debugging, backend....

Symbols: cwe-88
DEV Community
dev. to > gabrielanhaia > injecting-version-info-at-build-time-in-go-with-ldflags-m9j

Injecting Version Info at Build Time in Go With -ldflags

5+ hour, 55+ min ago  (589+ words) Stamp version, commit, and build time into a Go binary with -ldflags -X, and read the git revision back from runtime/debug Build Info. Tagged with go, build, devops....

Symbols: cwe-88,symbol:since
DEV Community
dev. to > gabrielanhaia > share-memory-by-communicating-when-a-channel-beats-a-mutex-in-go-315f

Share Memory by Communicating: When a Channel Beats a Mutex in Go

6+ hour, 38+ min ago  (427+ words) The Go proverb in practice: when a channel that transfers ownership beats a mutex that guards state, and how to pick per situation. Tagged with go, concurrency, backend....

Symbols: nyse:go,nasdaq:stkl,nasdaq:atgl,nyse:noc,nyse:dsp,nasdaq:ionq.ws
DEV Community
dev. to > gabrielanhaia > catching-goroutine-leaks-in-go-tests-with-goleak-1jhe

Catching Goroutine Leaks in Go Tests With goleak

6+ hour, 38+ min ago  (278+ words) Goroutine leaks pass every test until prod runs out of memory. Wire goleak into Test Main and read the stack back to the guilty go func(). Tagged with go, concurrency, testing....

Symbols: cwe-88,nasdaq:gogo,nyse:go,tse:gsy
DEV Community
dev. to > gabrielanhaia > singleflight-in-go-collapsing-duplicate-work-under-load-5f9h

singleflight in Go: Collapsing Duplicate Work Under Load

6+ hour, 38+ min ago  (271+ words) Cache stampedes flood your database with duplicate work. Go's singleflight collapses concurrent calls into one, with a shared-result edge to watch. Tagged with go, concurrency, performance....

Symbols: nyse:go
DEV Community
dev. to > cihanbir7 > im-building-osquil-a-schema-aware-query-workbench-for-osquery-4o8i

I'm building Osquil, a schema-aware query workbench for osquery

9+ hour, 31+ min ago  (589+ words) I've been working on Osquil, a schema-aware workbench for osquery. The first version is close, and before I publish it I want feedback from people who actually use osquery. osquery itself is great. Turning the OS into a queryable database…...

DEV Community
dev. to > gabrielanhaia > the-go-code-review-comments-list-10-rules-every-reviewer-cites-3kfd

The Go Code Review Comments List: 10 Rules Every Reviewer Cites

13+ hour, 23+ min ago  (190+ words) The canonical Go Code Review Comments wiki, distilled: error strings, receiver consistency, contexts, doc comments, naked returns, and why each rule exists. Tagged with go, codereview, bestpractices....

DEV Community
dev. to > gabrielanhaia > define-interfaces-where-you-use-them-the-go-rule-that-shrinks-your-api-2jc1

Define Interfaces Where You Use Them: The Go Rule That Shrinks Your API

13+ hour, 22+ min ago  (370+ words) Consumer-defined interfaces keep Go surfaces small, fakes trivial, and import cycles gone. The rule most Java-shaped Go code breaks. Tagged with go, testing, architecture....

Symbols: skill.md