this post was submitted on 20 Aug 2023
1 points (100.0% liked)

Open Source on Reddit

1 readers
0 users here now

A subreddit for everything open source related.

founded 1 year ago
MODERATORS
 
This is an automated archive.

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


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!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here