migrations

package
v0.0.0-...-ef943d8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileContent

func FileContent(path string) *script.Pipe

FileContent reads the content of a file and returns it as a pipe. Unlike script.File, the file is not kept open after the pipe is created. This is useful for reading the content of a file and then writing back to that same file.

func Migrate

func Migrate(templateName, outDir string) error

Types

type Migration

type Migration interface {
	Name() string
	Migrate(templateName, outDir string) error
	ShouldRun(templateName string) bool
}

Jump to

Keyboard shortcuts

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