go: cuelang.org/go/tools/fix Index | Files

package fix

import "cuelang.org/go/tools/fix"

Package fix contains functionality for writing CUE files with legacy syntax to newer ones.

Note: the transformations that are supported in this package will change over time.

Index

Package Files

fix.go fixall.go

func File Uses

func File(f *ast.File) *ast.File

File applies fixes to f and returns it. It alters the original f.

func Instances Uses

func Instances(a []*build.Instance) errors.Error

Instances modifies all files contained in the given build instances at once.

It also applies fix.File.

Package fix imports 9 packages (graph) and is imported by 2 packages. Updated 2020-09-28. Refresh now. Tools for package owners.