Skip to content

Commit

Permalink
golint fixes in server/generate
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Jul 4, 2021
1 parent cee5966 commit 7321f62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/generate/binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const (
DefaultSuffix = "_default.go"

// *** Default ***

// SliverCC64EnvVar - Environment variable that can specify the 64 bit mingw path
SliverCC64EnvVar = "SLIVER_CC_64"
// SliverCC32EnvVar - Environment variable that can specify the 32 bit mingw path
Expand All @@ -124,6 +125,7 @@ const (
SliverCXX32EnvVar = "SLIVER_CXX_32"

// *** Platform Specific ***

// SliverPlatformCC64EnvVar - Environment variable that can specify the 64 bit mingw path
SliverPlatformCC64EnvVar = "SLIVER_%s_CC_64"
// SliverPlatformCC32EnvVar - Environment variable that can specify the 32 bit mingw path
Expand Down Expand Up @@ -721,7 +723,7 @@ func getCrossCompilers(targetGoos string, targetGoarch string) (string, string)
return cc, cxx
}

// This function attempts to determine what we can reasonably target
// GetCompilerTargets - This function attempts to determine what we can reasonably target
func GetCompilerTargets() []*clientpb.CompilerTarget {
targets := []*clientpb.CompilerTarget{}

Expand Down Expand Up @@ -797,6 +799,7 @@ func GetCompilerTargets() []*clientpb.CompilerTarget {
return targets
}

// GetCrossCompilers - Get information about the server's cross-compiler configuration
func GetCrossCompilers() []*clientpb.CrossCompiler {
compilers := []*clientpb.CrossCompiler{}
for longPlatform := range SupportedCompilerTargets {
Expand All @@ -817,6 +820,7 @@ func GetCrossCompilers() []*clientpb.CrossCompiler {
return compilers
}

// GetUnsupportedTargets - Get compiler targets that are not "supported" on this platform
func GetUnsupportedTargets() []*clientpb.CompilerTarget {
appDir := assets.GetRootAppDir()
distList := gogo.GoToolDistList(gogo.GoConfig{
Expand Down

0 comments on commit 7321f62

Please sign in to comment.