package
0.0.0-20190418235907-40e102283025
Repository: https://github.com/fab-man/hands-on-dependency-injection-in-go.git
Documentation: pkg.go.dev

# Functions

Load will attempt to load and return a person.
LoadAll will attempt to load all people in the database It will return ErrNotFound when there are not people in the database Any other errors returned are caused by the underlying database or our connection to it.
Save will save the supplied person and return the ID of the newly created person or an error.

# Variables

ErrNotFound is returned when the no records where matched by the query.

# Structs

Person is the data transfer object (DTO) for this package.

# Interfaces

Config is the configuration for the data package.