Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Releases: kamilsk/go-tools

v0.1.7

10 Oct 12:59

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

Motivation

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.6

10 Oct 12:52

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

Motivation

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.5

28 Aug 20:38

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.4

27 Jun 15:18

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.3

19 Jun 16:11

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.2

29 May 15:10

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.1

16 May 11:06

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.1.0

21 Jan 07:03

Choose a tag to compare

Flag -ungroup added possibility to reset custom import sorting (diff).

Example

Input:

import (
	"context"
	"github.com/pkg/b"
	"github.com/pkg/a"

	"github.com/pkg/y"
	"github.com/pkg/x"
	"github.com/pkg/z"
)

Simple goimports output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"

	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

With -ungroup flag output:

import (
	"context"

	"github.com/pkg/a"
	"github.com/pkg/b"
	"github.com/pkg/x"
	"github.com/pkg/y"
	"github.com/pkg/z"
)

How to install

Homebrew

$ brew install kamilsk/tap/goimports

Binary

$ curl -sSfL https://bit.ly/install-goimports | sh -s -- -b $(go env GOPATH)/bin

How to run

As usual, just add -ungroup flag.

Happy hacking!

v0.0.5

15 Sep 19:45

Choose a tag to compare

integrate ci/cd

v0.0.4

10 Mar 13:21

Choose a tag to compare

integrate ci/cd