fixers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package fixers implements functions to fix GX code.

Index

Constants

This section is empty.

Variables

View Source
var Fixers = []Fixer{
	fixTestOutput,
}

Fixers list all the fixers.

Functions

This section is empty.

Types

type FileWriter

type FileWriter interface {
	Write(path string, content string) error
	Close() error
}

FileWriter writes a file given its content.

type Fixer

type Fixer func(rtm *api.Runtime, path string, f *ast.File) (fixed bool, err error)

Fixer fixes a GX file.

type Walker

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

Walker walks across a file system to find GX files.

func NewWalker

func NewWalker(fw FileWriter, rtm *api.Runtime, dryRun bool) *Walker

NewWalker returns a new walker.

func (*Walker) Close

func (w *Walker) Close() error

Close the walker.

func (*Walker) Fix

func (w *Walker) Fix(path string, info fs.FileInfo, err error) error

Fix a path.

Jump to

Keyboard shortcuts

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