Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/perbu/interfjas

Just a PoC on how to mock a database repo package in a Go project.
https://github.com/perbu/interfjas

Last synced: about 2 months ago
JSON representation

Just a PoC on how to mock a database repo package in a Go project.

Awesome Lists containing this project

README

        

# Interface playground

Just some PoC code to see how you can mock a database access layer.

The code in main will instantiate a repo and a mocked repo. It then
queries both. The mocked repo works by implementing the same interface.