Skip to content

TrevinTeacutter/transduce-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transduce-go

This is a transducer library based heavily on a java library for how to go about this. Due to Golang not having dynamic dispatch of function return types in interfaces composition of transducers have to specify return types limiting their reusability depending on the code base but can still be helpful in isolating business logic to funtions.

I did this mostly because of scenarios where I wanted to decompose logic into reusable generic pieces of code and to get around having to know the full types of the pipeline with functions chaining, transducers offer the best path despite being very confusing to grasp when trying to leverage them. So this doesn't save you headache of code composition, it just separates the business logic from the composition of different functions a bit better. It's also important to note that this currently does not support any concurrency as this was originally intended for handling sequential data (namely pagination).

For more info on transducers (what they are, how they work, and why bother) this medium post does a decent job setting the scene.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages