infra

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgReader

type CfgReader struct{}

CfgReader implements domain.CfgReader .

func (CfgReader) Read

func (reader CfgReader) Read(cfgPath string) (domain.Config, error)

Read implements domain.CfgReader#Read .

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 .

func (FileSystem) Write

func (fsys FileSystem) Write(dst string, data []byte) error

Write implements domain.FileSystem#Write .

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

func (imp Importer) GetBuildPkgInDir(dir string, mode build.ImportMode) (*build.Package, error)

GetBuildPkgInDir implements domain.Importer#GetBuildPkgInDir .

func (Importer) GetFileByFilePath

func (imp Importer) GetFileByFilePath(
	filePath string, mode parser.Mode,
) (*ast.File, error)

GetFileByFilePath implements domain.Importer#GetFileByFilePath .

func (Importer) GetPkgsInDir

func (imp Importer) GetPkgsInDir(
	dirPath string, filter func(os.FileInfo) bool, mode parser.Mode,
) (map[string]*ast.Package, error)

GetPkgsInDir implements domain.Importer#GetPkgsInDir .

Jump to

Keyboard shortcuts

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