Documentation ¶
Index ¶
- Variables
- type LibsVendor
- func (lv *LibsVendor) CopyLibsToVendor() (err error)
- func (lv *LibsVendor) MakeMd5() (out string, err error)
- func (lv *LibsVendor) Read(filename string) (err error)
- func (lv *LibsVendor) RunForDir(path string, skipImports ...[]string) (err error)
- func (lv *LibsVendor) RunForFiles(filenames []string, skipImports ...[]string) (err error)
- func (lv *LibsVendor) Write(filename string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Lib mapping IsExistSlIface = glss.IsExistSlIface ScanDirFileInfoMask = glfssf.ScanDirFileInfoMask FilesOpStructNew = glfsfo.FilesOpStructNew ExtFileMatch = glfs.ExtFileMatch ExecCommand = glts.ExecCommand GetGoEnv = gltsgsge.GetGoEnv )
Functions ¶
This section is empty.
Types ¶
type LibsVendor ¶
type LibsVendor struct { Author string SourcePathName string // Directory to be analysed SourceFilenames []string // Files to be anaysed Changed bool ImportPaths []string NotExist [][]string UsedFiles []string // Analysed library files UsedFilesMD5 string ExludedImports []string ExludedFiles []string IncludeSymlinks bool // contains filtered or unexported fields }
func LibVendorNew ¶
func LibVendorNew() (lv *LibsVendor, err error)
LibVendorNew: The purpose of this library is to build a "vendor" directory in a project that hold all the necessary imports for a successful compilation even if the officials libs have changed.
func (*LibsVendor) CopyLibsToVendor ¶
func (lv *LibsVendor) CopyLibsToVendor() (err error)
LibsToVendor: copy libraries to vendor directory of "SourcePathName"
func (*LibsVendor) MakeMd5 ¶
func (lv *LibsVendor) MakeMd5() (out string, err error)
MD5: make global md5 hash for all used files.
func (*LibsVendor) Read ¶
func (lv *LibsVendor) Read(filename string) (err error)
Read vendor information structure from file
func (*LibsVendor) RunForDir ¶
func (lv *LibsVendor) RunForDir(path string, skipImports ...[]string) (err error)
RunForDir:
func (*LibsVendor) RunForFiles ¶
func (lv *LibsVendor) RunForFiles(filenames []string, skipImports ...[]string) (err error)
RunForFiles:
func (*LibsVendor) Write ¶
func (lv *LibsVendor) Write(filename string) (err error)
Write vendor information structure to file
Click to show internal directories.
Click to hide internal directories.