Help us shape the future of Go! Take the 2026 Go Developer Survey

pgtestcontainer

package
v0.87.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	testcontainers.Container
	DatabaseURL string
}

Container wraps a testcontainer running Postgres.

func New

func New(t *testing.T) Container

New creates and starts a new Postgres testcontainer. Call Terminate() when done using it.

func (Container) Terminate

func (c Container) Terminate(t *testing.T)

Terminate stops and removes the container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL