package fix

import "github.com/gobuffalo/packr/v2/packr2/cmd/fix"

Index

Variables

var YesToAll bool

YesToAll will be used by the command to skip the questions

Functions

func Run

func Run() error

Run all compatible checks

Types

type Check

type Check func(*Runner) error

Check interface for runnable checker functions

type ImportConverter

type ImportConverter struct {
	Data map[string]string
}

ImportConverter will changes imports from a -> b

func (ImportConverter) Process

func (c ImportConverter) Process(r *Runner) error

Process will walk all the .go files in an application, excluding ./vendor. It will then attempt to convert any old import paths to any new import paths used by this version Buffalo.

type Runner

type Runner struct {
	Warnings []string
}

Runner will run all compatible checks

Source Files

fix.go imports.go runner.go

Version
v2.0.9
Published
Mar 29, 2019
Platform
js/wasm
Imports
17 packages
Last checked
3 hours ago

Tools for package owners.