libVendoring

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT, MIT Imports: 21 Imported by: 2

Documentation

Index

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

Jump to

Keyboard shortcuts

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