Giter Site home page Giter Site logo

go-groups's People

Contributors

cnmcavoy avatar duaneobrien avatar mjpitz avatar shoenig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-groups's Issues

Add install.sh script or equivalent

Right now, I need to manually download the binary and move it into position. Can we provide a simple shell script that downloads the binary for the appropriate os/architecture that and places it in the users path?

go-groups does not respect "dot" imports

go version: 1.14.5
go-groups version: 0.0.1

package main

import (
	"fmt"
	"testing"

	. "github.com/onsi/gomega"
	. "github.com/onsi/ginkgo"
)

func main() {
	fmt.Println("Hello world")

	RegisterFailHandler(Fail)
	RunSpecsWithDefaultAndCustomReporters(&testing.T{},
		"Controller Suite",
		[]Reporter{})
}

goimports properly re-ordered the imports, but go-groups removes the import lines.

use of go fmt example in the README is incorrect

E.g.

$ go-groups -w ./..
$ go fmt -w ./..
flag provided but not defined: -w
usage: go fmt [-n] [-x] [packages]
Run 'go help fmt' for details.
$ gofmt -w ./..

We should reference gofmt instead of go fmt

Support cleaning up unused imports

Right now, I find myself needing both this tool and goimports. As far as I can tell, the only thing goimports does that go-groups does not is clean up unused imports. It would be nice if go-groups supported this as it would drop the need for goimports almost entirely.

Support ignoring generated source files

Although most generated source files will produce gofmt-compliant code they will often produce Go source that does not adhere to the go-groups import style. It would be good if go-groups supported an option to detect and ignore generated source files based on the documented comment convention:

^// Code generated .* DO NOT EDIT.$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.