gopath

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoPath

func GetGoPath(pkg string) (goPath string, err error)

GetGoPath 获取go包所在的go path

Types

type Package

type Package string

Package go的包类型 不包含gopath的包字符串标识

func (Package) GetFilePath

func (pkg Package) GetFilePath() string

GetFilePath 获取完整的pkg文件路径

func (Package) GetGoPath

func (pkg Package) GetGoPath() (goPath string, err error)

GetGoPath 获取go包所在的go path

func (Package) GetSubpackages

func (pkg Package) GetSubpackages() (subs []string, err error)

GetSubpackages 获取指定项目所在包的子包

func (Package) MustGoPath

func (pkg Package) MustGoPath() string

func (Package) Name

func (pkg Package) Name() string

func (Package) String

func (pkg Package) String() string

Jump to

Keyboard shortcuts

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