uimigrate

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 10 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

Overview

Package uimigrate migrates source syntax to the UI's checked value API. It resolves the actual Golet import alias and local declaration types; it never performs global text replacements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(sources map[string][]byte) (map[string]Result, error)

Files migrates a source set, sharing syntax facts within each directory and package. It needs no successfully compiled old API or external Go tooling.

Types

type Result

type Result struct {
	Source  []byte
	Changed bool
	Notes   []string
}

Result is a source migration and any changes requiring human review.

func File

func File(filename string, source []byte) (Result, error)

File transforms one file. Files adds declarations from sibling package files.

Jump to

Keyboard shortcuts

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