utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeFormat = "20060102150405"
)

Variables

This section is empty.

Functions

func CreateCmd

func CreateCmd(dir string, startTime time.Time, format string, name string, ext string, seq bool, seqDigits int, print bool) error

CreateCmd (meant to be called via a CLI command) creates a new migration

func DownCmd

func DownCmd(m *migrate.Migrate, limit int) error

func DropCmd

func DropCmd(m *migrate.Migrate) error

func ForceCmd

func ForceCmd(m *migrate.Migrate, v int) error

func GotoCmd

func GotoCmd(m *migrate.Migrate, v uint) error

func UpCmd

func UpCmd(m *migrate.Migrate, limit int) error

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(lvl zapcore.Level, core zapcore.Core) *Logger

func (Logger) Enabled

func (l Logger) Enabled(lvl zapcore.Level) bool

func (Logger) Printf

func (l Logger) Printf(format string, v ...interface{})

Printf is like fmt.Printf

func (Logger) Verbose

func (l Logger) Verbose() bool

Verbose should return true when verbose logging output is wanted

Jump to

Keyboard shortcuts

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