gogimport

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2019 License: MIT Imports: 16 Imported by: 0

README

gogimport

golang grouping import tool

introduction

gogimport will grouping imports by stdlib, thirdparty, custom packages like the example below:

$ gogimport -local github.com/wusendong/example main.go

// 默认code.yunzhanghu.com 为 custom packages

$ gogimport main.go
package main

import (
    "fmt"
    "log"

    "gopkg.in/redis.v5"
    "github.com/gorilla/context"

    "github.com/wusendong/example"
)

install

go get -u github.com/guangxuewu/gogimport@v1.1.1

usage

Usage of gogimport:
gogimport [options] [file ...]

Options:
  -local string
        local package name
Example command:
gogimport -local ${packaname} some.go other.go

vscode 配置

vscode配置

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL