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

goose

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package goose provides a MigrationDriver backed by pressly/goose/v3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver implements interfaces.MigrationDriver using pressly/goose.

func New

func New() *Driver

New returns a new goose Driver.

func (*Driver) Down

Down rolls back N migrations (Options.Steps, default 1).

func (*Driver) Goto

Goto migrates to the specified version.

func (*Driver) Name

func (d *Driver) Name() string

Name returns the driver name.

func (*Driver) Status

Status returns the current migration state.

func (*Driver) Up

Up applies all pending migrations.

Jump to

Keyboard shortcuts

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