mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
New package handling HTTP POST contact forms: ordered []Field config (GravityForms-compatible input_N defaults), MaxBytesReader body cap, geoip+ipcohort gating, X-Forwarded-For trust via TrustedProxies CIDRs, and SMTP submission over STARTTLS. EHLO LocalName is split from the NewClient peer host so the client identifies itself correctly while PlainAuth still binds to the real server name. Hot-reloadable success/ error response bodies via func() []byte. Includes a fake-SMTP integration test that catches StartTLS(nil) regressions.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%