# Using modules for Testcontainers with Golang

DevFeed: [Using modules for Testcontainers with Golang](<https://devfeed.tech/articles/using-modules-for-testcontainers-with-golang-47465.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2023/12/using-modules-for-testcontainers-with-golang.html>)

Author: Fabien Pozzobon

Published: 2023-12-18T23:00:00Z

Content type: tutorial

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [container](<https://devfeed.tech/topics/container.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [podman](<https://devfeed.tech/topics/podman.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [docker](<https://devfeed.tech/tags/docker.md>), [golang](<https://devfeed.tech/tags/golang.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [integration-test](<https://devfeed.tech/tags/integration-test.md>), [podman](<https://devfeed.tech/tags/podman.md>), [redis](<https://devfeed.tech/tags/redis.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

## AI overview

This tutorial explains how to use Testcontainers modules with Go for integration testing against containerized dependencies. It also describes an internal Redis helper library using the Functional Options Pattern and discusses container cleanup through Testcontainers' garbage collector.

## Source excerpt

In this post, we explain how to use modules for Testcontainers with Golang and how to fix common issues.