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 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

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