jennifer icon indicating copy to clipboard operation
jennifer copied to clipboard

Feature: ability to provide custom imports sorter function

Open rzajac opened this issue 3 years ago • 0 comments

Give user ability to provide custom imports sorter function.

https://github.com/dave/jennifer/blob/be82eb6738040b1b5934f0c463273c37d5fd5fd9/jen/jen.go#L132

Also it would be nice to have ability to put empty lines to achieve imports like this:

import (
	"errors"
	"fmt"
	"testing"

	"github.com/rs/zerolog"
	"github.com/rzajac/zrr/zrrtest"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/mock"
	"github.com/stretchr/testify/require"
	"github.com/stretchr/testify/suite"
)

rzajac avatar Jun 23 '22 09:06 rzajac