Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 506 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 506 Bytes

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)})