difactroy

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BASE_PKG = "gitee.com\\ichub\\goconfig"

Variables

This section is empty.

Functions

This section is empty.

Types

type DiFactroy

type DiFactroy struct {
	BasePkg string
	Rootdir string

	Gofiles []*FileInfoDto
	// contains filtered or unexported fields
}

func NewDiFactroy

func NewDiFactroy() *DiFactroy

func (*DiFactroy) FindFile

func (this *DiFactroy) FindFile(file string) *FileInfoDto

func (*DiFactroy) FindGoFiles

func (this *DiFactroy) FindGoFiles() error

func (*DiFactroy) ParseFrom

func (this *DiFactroy) ParseFrom(f *FileInfoDto)

type FileInfoDto

type FileInfoDto struct {
	PkgName  string `json:"pkg_name,omitempty"`
	PathFile string `json:"path_file,omitempty"`

	TypeInfos []*TypeInfo `json:"type_infos,omitempty"`
	AstFile   *ast.File   `json:"-"`
}

func NewFileInfoDto

func NewFileInfoDto() *FileInfoDto

type TypeInfo

type TypeInfo struct {
	Name string
	Type string
}

func (*TypeInfo) Filter

func (this *TypeInfo) Filter(typename string)

Jump to

Keyboard shortcuts

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