Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Package ¶ added in v1.1.2
type Package struct {
// contains filtered or unexported fields
}
Package is the import path of a Go package. for example: "google.golang.org/protobuf/compiler/protogen"
func NewPackage ¶ added in v1.1.2
NewPackage . 简洁包名例如: "github.com/pkg/errors", 程序可以自处理 alias 复杂包名例如: "github.com/redis/go-redis/v9", "github.com/robfig/cron/v3", 需手动调用 Alias(),否则会导致生成的文件出错
Click to show internal directories.
Click to hide internal directories.