This a Go module to centralize all common functions and utilities we use in our Go development at IAM team.
API related functions to call API gateway endpoints. Provides a generic function CallApi and specialized functions for specific items (GetPerson, GetAuthorizations, GetAccreds, etc.). It also provides the structures for the most common business artefacts with JSON annotation for unmarshalling.
It provides mainly a GetLogger function to get a commonly configured zap logger.
It provides a function to get a gorm.DB database handler.
Provides common functions for testings, like MakeRequest to make a request to a local backend and CompareResponses to compare an API response content to a reference file in assets/tests folder.