Skip to content

Glossary: Software Design Patterns in Go

Repository

Also written: repo, repositories, SQLite, SqliteRepo

A type that stores and finds things so nothing else knows how they are stored. `MemoryRepo` keeps orders in a slice, and a `SqliteRepo` (SQLite is a small single-file database) or `JsonRepo` with the same methods could replace it.

Where the book teaches it

Related terms

FakeDependency injection