Hello all —
I simply launched GoISL, a light-weight and hookable Go bundle designed to simplify enter sanitization and output escaping. Empasizing simplicity and extensibility, it’s slightly below a yr within the design and making.
Impressed by work accomplished within the WordPress neighborhood, GoISL encourages a “sanitize on enter, escape on output” method, offering built-in helpers for:
However right here’s the catch: a bundle can’t remedy every thing — and GoISL is not any exception. That’s why it was constructed from the bottom up with customized hooks in thoughts. Whether or not you’re filtering out disposable e mail domains, rejecting shortened URLs, masking patterns, or implementing format-specific guidelines, GoISL allows you to incorporate your personal logic.
This launch consists of 16+ instance hooks (Twitter handles, crypto, UUIDs, profanity filters, and many others.), and future releases will proceed to develop the library with community-inspired examples. The purpose is to assist builders remedy their distinctive challenges shortly — with safe, testable, drop-in code.
Present protection: 90.4%+, with multi-platform testing throughout Linux, macOS, and ARM.
GitHub: https://github.com/derickschaefer/goisl
pkg.go.dev: https://pkg.go.dev/github.com/derickschaefer/goisl
Would love suggestions, contributions, or your personal real-world hook examples!