This is an automated archive made by the Lemmit Bot.

The original was posted on /r/opensource by /u/darkripper214 on 2023-08-20 22:14:09.


Here is my first attempt at realeasing a go library that does pattern matching. Heavily inspired by ts-pattern.

I like this construct of being able to define a pattern, test it, and reuse it. Kinda useful when dealing with complex conditionals arising from complex business requirement.

A short writeup on this library

Here is the GitHub repo, feedback are highly welcomed!