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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7354bbe · Feb 10, 2025

History

28 Commits
Sep 20, 2022
Sep 19, 2022
Dec 23, 2022
Sep 15, 2022
Sep 20, 2022
Sep 13, 2022
Jul 1, 2023
Dec 23, 2022
Dec 23, 2022
Jan 3, 2023
Jan 3, 2023
Sep 20, 2022

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@latest

Usage

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

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