Documentation ¶
Index ¶
- type CfgReader
- type FileSystem
- type Importer
- func (imp Importer) GetBuildPkgByPkgPath(pkgPath, srcDir string, mode build.ImportMode) (*build.Package, error)
- func (imp Importer) GetBuildPkgInDir(dir string, mode build.ImportMode) (*build.Package, error)
- func (imp Importer) GetFileByFilePath(filePath string, mode parser.Mode) (*ast.File, error)
- func (imp Importer) GetPkgsInDir(dirPath string, filter func(os.FileInfo) bool, mode parser.Mode) (map[string]*ast.Package, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct{}
FileSystem implements domain.FileSystem .
func (FileSystem) Exist ¶
func (fsys FileSystem) Exist(dst string) bool
Exist implements domain.FileSystem#Exist .
func (FileSystem) GetWriteCloser ¶
func (fsys FileSystem) GetWriteCloser(dst string) (io.WriteCloser, error)
GetWriteCloser implements domain.FileSystem#GetWriteCloser .
func (FileSystem) Getwd ¶
func (fsys FileSystem) Getwd() (string, error)
Getwd implements domain.FileSystem#Getwd .
func (FileSystem) MkdirAll ¶
func (fsys FileSystem) MkdirAll(dst string) error
MkdirAll implements domain.FileSystem#MkdirAll .
type Importer ¶
type Importer struct{}
Importer implements domain.Importer .
func (Importer) GetBuildPkgByPkgPath ¶
func (imp Importer) GetBuildPkgByPkgPath( pkgPath, srcDir string, mode build.ImportMode, ) (*build.Package, error)
GetBuildPkgByPkgPath implements domain.Importer#GetBuildPkgByPkgPath .
func (Importer) GetBuildPkgInDir ¶
GetBuildPkgInDir implements domain.Importer#GetBuildPkgInDir .
func (Importer) GetFileByFilePath ¶
GetFileByFilePath implements domain.Importer#GetFileByFilePath .
Click to show internal directories.
Click to hide internal directories.