Releases: kamilsk/go-tools
v0.20.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
The improved goimports with the deterministic behaviour
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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.19.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.18.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.17.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.16.1
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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.16.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.15.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.14.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab
v0.13.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 octolab/tap/goimports
. - The installation is also possible by
$ curl -sSfL https://install.octolab.org/goimports | sh -s -- -b /usr/local/bin
Related issues
made with ❤️ for everyone by OctoLab