codeanalysis

package
v0.0.0-...-e6d360e Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPrefixInSomeElement

func HasPrefixInSomeElement(value string, src []string) bool

func HasSuffixInSomeElement

func HasSuffixInSomeElement(value, extraSuffix string, src []string) bool

func InSomeElement

func InSomeElement(value string, src []string) bool

func ParsePackageNameFromGoFile

func ParsePackageNameFromGoFile(filepath string) string

func PathExists

func PathExists(path string) bool

Types

type AnalysisResult

type AnalysisResult interface {
	OutputToFile(logfile string) error
}

func AnalysisCode

func AnalysisCode(config Config) AnalysisResult

type Config

type Config struct {
	CodeDir          string
	GopathDir        string
	VendorDir        string
	IgnoreDirs       []string
	IgnoreFilenames  []string
	IncludeFilenames []string
	IgnoreImplements []string
	IncludeTypeAlias []string
	IgnoreTypeAlias  []string
	OutputReplaceTag string
}

type DependencyRelation

type DependencyRelation struct {
	// contains filtered or unexported fields
}

type JobExecuteResult

type JobExecuteResult struct {
	Cmd       string
	Output    []byte    // 脚本输出
	Err       error     // 脚本错误原因
	StartTime time.Time // 启动时间
	EndTime   time.Time // 结束时间
}

任务执行结果

func Exec

func Exec(c string) *JobExecuteResult

Jump to

Keyboard shortcuts

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