Documentation ¶
Index ¶
- type ImportListBuilder
- func (inst *ImportListBuilder) Add(adding *model.GoImport) *model.GoImport
- func (inst *ImportListBuilder) AddComplexType(t *model.ComplexType, disableHash bool)
- func (inst *ImportListBuilder) AddPackagePath(pkgPath string, disableHash bool) *model.GoImport
- func (inst *ImportListBuilder) AddSimpleType(t *model.SimpleType, disableHash bool)
- func (inst *ImportListBuilder) Create() []*model.GoImport
- type ThisPackagePathComputer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportListBuilder ¶
type ImportListBuilder struct {
// contains filtered or unexported fields
}
ImportListBuilder 是一个 go-import 列表构建器
func (*ImportListBuilder) Add ¶
func (inst *ImportListBuilder) Add(adding *model.GoImport) *model.GoImport
Add 添加一条go-import 记录
func (*ImportListBuilder) AddComplexType ¶
func (inst *ImportListBuilder) AddComplexType(t *model.ComplexType, disableHash bool)
AddComplexType 添加一条go-import 记录
func (*ImportListBuilder) AddPackagePath ¶
func (inst *ImportListBuilder) AddPackagePath(pkgPath string, disableHash bool) *model.GoImport
AddPackagePath 添加一条go-import 记录
func (*ImportListBuilder) AddSimpleType ¶
func (inst *ImportListBuilder) AddSimpleType(t *model.SimpleType, disableHash bool)
AddSimpleType 添加一条go-import 记录
func (*ImportListBuilder) Create ¶
func (inst *ImportListBuilder) Create() []*model.GoImport
Create 创建go-import 列表
Click to show internal directories.
Click to hide internal directories.