Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/perbu/interfjas
- Owner: perbu
- Created: 2021-03-24T12:07:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T12:08:50.000Z (almost 4 years ago)
- Last Synced: 2024-04-22T00:24:16.462Z (9 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.