Documentation ¶
Index ¶
- Variables
- func Basename(pwd string) string
- func CheckDocker() error
- func CheckDockerImage(goVersion string) (bool, error, string)
- func CommadString(os []OSData, isVendor, isCGO bool, packageName, outDir string) (commad []string)
- func DisabledCGO() bool
- func GeneratePackFileString(assetBundle *ReferencedAssets, ignoreErrors bool) (string, error)
- func GetBuildGitID() string
- func GetBuildTime() string
- func GetGoVersion() string
- func ParserArch(arch string, lists []string) []string
- func ParserTarget(cross string) []string
- func PullDockerImage(image string) error
- func ReadMod(pwd string) string
- func TargetsCommad(target string) map[string][]string
- type AssignStmt
- type CallStmt
- type Group
- type OSData
- type ReferencedAsset
- type ReferencedAssets
Constants ¶
This section is empty.
Variables ¶
View Source
var DockerDist = "seekwe/go-builder:"
Functions ¶
func CheckDocker ¶
func CheckDocker() error
func CommadString ¶
func DisabledCGO ¶ added in v1.0.36
func DisabledCGO() bool
func GeneratePackFileString ¶
func GeneratePackFileString(assetBundle *ReferencedAssets, ignoreErrors bool) (string, error)
GeneratePackFileString creates the contents of a pack file
func GetBuildGitID ¶ added in v1.0.10
func GetBuildGitID() string
func GetBuildTime ¶ added in v1.0.10
func GetBuildTime() string
func GetGoVersion ¶ added in v1.0.10
func GetGoVersion() string
func ParserArch ¶
func ParserTarget ¶
func PullDockerImage ¶
func TargetsCommad ¶
Types ¶
type AssignStmt ¶
AssignStmt holds data about an assignment
func ParseAssignment ¶
func ParseAssignment(astmt *ast.AssignStmt) *AssignStmt
ParseAssignment parses an assignment statement
func (*AssignStmt) String ¶
func (a *AssignStmt) String() string
type ReferencedAsset ¶
ReferencedAsset holds the information for an asset referenced by the user
type ReferencedAssets ¶
type ReferencedAssets struct { Caller string PackageName string BaseDir string Assets []*ReferencedAsset Groups []*Group }
ReferencedAssets is a collection of assets referenced from a file
func GetReferencedAssets ¶
func GetReferencedAssets(filenames []string) ([]*ReferencedAssets, error)
GetReferencedAssets gets a list of referenced assets from the AST
func (*ReferencedAssets) HasAsset ¶
func (r *ReferencedAssets) HasAsset(name string) bool
HasAsset returns true if the given asset name has already been processed for this asset group
Click to show internal directories.
Click to hide internal directories.