Skip to content

A module for common helpers related to Go MD development : Gorm, Logger, usual data types, API call abstraction, tests, etc.

Notifications You must be signed in to change notification settings

epfl-si/go-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Toolbox

Summary

This a Go module to centralize all common functions and utilities we use in our Go development at IAM team.

Packages

api

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.

log

It provides mainly a GetLogger function to get a commonly configured zap logger.

database

It provides a function to get a gorm.DB database handler.

test

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.

About

A module for common helpers related to Go MD development : Gorm, Logger, usual data types, API call abstraction, tests, etc.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages