Skip to content

CUE tool that updates your import lines, adding missing ones and removing unused ones.

License

Notifications You must be signed in to change notification settings

asdine/cueimports

Repository files navigation

cueimports

cueimports is a CUE tool that updates your import lines, adding missing ones and removing unused ones.

It scans through:

  • your local packages
  • the cue.mod directory packages
  • the standard library packages

Install

go install github.com/asdine/cueimports/cmd/cueimports

Usage

$ echo "data: json.Marshal({a: math.Sqrt(7)})" | cueimports
import (
	"encoding/json"
	"math"
)

data: json.Marshal({a: math.Sqrt(7)})

About

CUE tool that updates your import lines, adding missing ones and removing unused ones.

Topics

Resources

License

Stars

Watchers

Forks