daixiang0 / gci

GCI, a tool that control golang package import order and make it always deterministic.
BSD 3-Clause "New" or "Revised" License
395 stars 62 forks source link

New std lib `unique`,`iter` in go1.23 can not be recognized #209

Open Zxilly opened 1 month ago

Zxilly commented 1 month ago

What version of GCI are you using?

0.13.4

Reproduce Steps

Just run with a file using the unique

What did you expect to see?

unique should be regarded as std lib and stay with other std libs.

What did you see instead?

unique was regarded as third party library.

daixiang0 commented 1 month ago

Refer to https://pkg.go.dev/unique, it is introduced by 1.23rc1, since now 1.23 is not released yet, please wait it.

Zxilly commented 1 month ago

Please take a look at https://github.com/daixiang0/gci/pull/208

Zxilly commented 4 days ago

@daixiang0 Go1.23 has been generally available, please review the PR.