All languages

Go for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists Two chores appear in nearly every operations tool: pulling fields out of text, and reasoning about time (cutoffs, expiry, durations, timeouts). Go's answers to both are a little unusual and worth…

Go for DevOps: Regular Expressions with RE2 (No ReDoS), Time Layouts, Durations, Zones and Timeouts

Parse logs with Go's regexp package (named groups, submatches, masking secrets, what RE2 refuses to support and why that makes it immune to catastrophic backtracking), and handle time correctly: the reference-date layouts, durations, retention cutoffs, zones and daylight saving, and select-based timeouts.

Sign in free to read this script, along with the rest of the library.

Sign in free