github.com/searKing/golang/tools/cmd/go-import (go): go-import Performs auto import of non go files. Given the directory to be imported go-import will create gokeep.go Go source files and a new self-contained goimport.go Go source file. The gokeep.go file is created in the same package and directory as the cwd package. The goimport.go file is created in the package and directory under directories to be imported, It has helpful defaults designed for use with go generate.  For example, given this snippet,  running this command  in the same directory will create the file goimport.go, and in /dirs_to_be_force_imported will create the file gokeep.go  Typically, this process would be run using go generate, like this:  With no arguments, it processes the package in the current directory. Otherwise, the arguments must name a single directory holding a Go package or a set of Go source files that represent a single Go package.  The -tag flag accepts a build tag string.  Code generated for package main by go-bindata DO NOT EDIT. (@generated) sources: tmpl/import.tmpl
Keywords: connection-mux|generic-template|go|gogenerate|golang|signal