gooseutil

package
v3.30.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gooseutil provides utility functions we want to keep internal to the package. It's intended to be a collection of well-tested helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpVersions

func UpVersions(
	fsysVersions []int64,
	dbVersions []int64,
	target int64,
	allowMissing bool,
) ([]int64, error)

UpVersions returns a list of migrations to apply based on the versions in the filesystem and the versions in the database. The target version can be used to specify a target version. In most cases this will be math.MaxInt64.

The allowMissing flag can be used to allow missing migrations as part of the list of migrations to apply. Otherwise, an error will be returned if there are missing migrations in the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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