# Golang

# Preferred packages

  • For logging https://github.com/sirupsen/logrus.
  • For routing https://github.com/gorilla/mux.
  • For working with env variables https://github.com/caarlos0/env and https://github.com/joho/godotenv.
  • To generate interfaces https://github.com/vburenin/ifacemaker.
  • To mock interfaces https://github.com/vektra/mockery.
  • To check values in tests https://godoc.org/github.com/stretchr/testify/assert.
  • To use mocks https://godoc.org/github.com/stretchr/testify/mock. If there is a mock SomeStructMock we do SomeStructMock.On("SomeMethod", mock.AnythingOfType("*models.ParamTypeStruct")).Return(mockedValue, err).Once().
Last Updated: 10/22/2021, 12:25:34 PM