ossrs / httpx-static

A HTTP/HTTPS API proxy for SRS.
https://github.com/ossrs/srs
MIT License
641 stars 221 forks source link

Modify imports ordering with goimport #59

Closed mbeacom closed 2 years ago

mbeacom commented 8 years ago

With goimport, all of the imports will be restructured to adhere to golang import package precedence and ordering by https://godoc.org/golang.org/x/tools/cmd/goimports to make it a little cleaner

winlinvip commented 8 years ago

I will study it.

Akagi201 commented 8 years ago

@winlinvip @mbeacom I found the easy solution. Just run goimports -w . on the root of the repo. It will format all the codes and write the changes to the file.

mbeacom commented 8 years ago

@winlinvip goimports -w . against the project root will replicate the changes proposed in #60 Thanks @Akagi201

winlinvip commented 8 years ago

Got it