Documenter NewApiClientFromViper

This commit is contained in:
Victor Lacasse-Beaudoin 2023-08-19 14:45:07 -04:00
parent 966dc49a9e
commit a4b56214b2

View file

@ -41,6 +41,9 @@ type UploadDocumentResponseInfo struct {
Size float64 `json:"size"`
}
// NewApiClientFromViper returns a pointer to a new API object,
// provided the configuration options are managed by
// https://git.agecem.com/agecem/agecem-org/config
func NewApiClientFromViper() (*API, error) {
var config config.Config