go

go
package types

import (
  "bytes"
  "encoding/json"
  "time"

Strict JSON time parsing with custom UnmarshalJSON

go json time
by Leah Thompson 1 tab
go
package deps

import (
  "context"
  "net/http"

Token bucket rate limiter for outbound calls

go rate-limit http
by Leah Thompson 1 tab
go
package consumers

import (
  "context"

  "github.com/jackc/pgx/v5/pgxpool"

Idempotent event consumer with processed-events table

go postgres messaging
by Leah Thompson 1 tab
go
package grpcmw

import (
  "context"
  "time"

gRPC unary interceptor for auth and timing logs

go grpc observability
by Leah Thompson 1 tab
go
package main

import (
  "time"

  "google.golang.org/grpc"

Graceful gRPC shutdown with fallback to Stop

go grpc shutdown
by Leah Thompson 1 tab
go
package ingest

import (
  "bufio"
  "bytes"
  "io"

Avoid bufio.Scanner token limits by switching to Reader

go io logs
by Leah Thompson 1 tab
go
package cache

import (
  "context"

  "github.com/redis/go-redis/v9"

Redis Pub/Sub subscriber with reconnect-friendly loop

go redis pubsub
by Leah Thompson 1 tab
go
package api_test

import (
  "encoding/json"
  "net/http"
  "net/http/httptest"

Table-driven tests for HTTP handlers with httptest

go testing http
by Leah Thompson 1 tab
go
package retry

import (
  "context"
  "net/http"
  "strconv"

Retry on 429 with Retry-After parsing

go http client
by Leah Thompson 1 tab
go
package importers

import (
  "context"
  "encoding/csv"
  "io"

Streaming CSV import with batched inserts

go csv postgres
by Leah Thompson 1 tab
go
package middleware

import (
  "context"
  "net/http"
  "strings"

JWT verification with cached JWKS (handles key rotation)

go http security
by Leah Thompson 1 tab
go
package api

import (
  "encoding/json"
  "errors"
  "io"

Strict JSON decode helper (size limit + unknown fields)

go http json
by Leah Thompson 1 tab