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 importers

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

Streaming CSV import with batched inserts

go csv postgres
by Leah Thompson 1 tab
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 main

import (
  "time"

  "google.golang.org/grpc"

Graceful gRPC shutdown with fallback to Stop

go grpc shutdown
by Leah Thompson 1 tab
go
package deps

import (
  "crypto/tls"
  "crypto/x509"
  "net/http"

mTLS client configuration with custom root CA pool

go security tls
by Leah Thompson 1 tab
go
package mail

import (
  "context"
  "bytes"
  "encoding/json"

Email delivery via HTTP provider with context, timeout, and idempotency

go email background-jobs
by Leah Thompson 1 tab
go
package config

import (
  "io"

  "gopkg.in/yaml.v3"

Safe YAML decoding (KnownFields) for config files

go config yaml
by Leah Thompson 1 tab
go
package web

import (
  "bytes"
  "html/template"
  "net/http"

Template rendering with html/template and strict escaping

go templates http
by Leah Thompson 1 tab
go
package jobs

import (
  "context"
  "math/rand"
  "time"

Robfig cron jobs with context cancellation and jitter

go cron background-jobs
by Leah Thompson 1 tab
go
package api

import "strings"

type Issue struct {
  Field   string `json:"field"`

JSON schema-ish validation with custom error details

go api json
by Leah Thompson 1 tab
go
package config

import (
  "fmt"
  "os"
  "strconv"

Robust environment parsing for bool/int with explicit defaults

go config reliability
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