importpath

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IImportPath

type IImportPath interface {
	GetByCurrentDir() (path string, err error)
	GetCurrentDirModFilePath() (modDir string, modPath string, err error)
	GetModFilePath(dir string) (modDir string, modPath string, err error)
}

type ImportPath

type ImportPath struct {
}

func (*ImportPath) GetByCurrentDir

func (p *ImportPath) GetByCurrentDir() (path string, err error)

GetCurrentDirPath 获取当前目录的包导入路径

func (*ImportPath) GetCurrentDirModFilePath

func (p *ImportPath) GetCurrentDirModFilePath() (modDir, modPath string, err error)

func (*ImportPath) GetModFilePath

func (p *ImportPath) GetModFilePath(dir string) (modDir, modPath string, err error)

Jump to

Keyboard shortcuts

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