Imports #
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"os"
"path/filepath"
"strings"
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"os"
"path/filepath"
"strings"
gccgoSearch is used to check whether a gccgo package exists in the standard library.
var gccgoSearch gccgoDirsgccgoSearch holds the gccgo search directories.
type gccgoDirs struct {
once sync.Once
dirs []string
}IsStandardPackage reports whether path is a standard package, given goroot and compiler.
func IsStandardPackage(goroot string, compiler string, path string) boolIsStandardPackage reports whether path is a standard package, given goroot and compiler.
func IsStandardPackage(goroot string, compiler string, path string) boolinit finds the gccgo search directories. If this fails it leaves dirs == nil.
func (gd *gccgoDirs) init()isStandard reports whether path is a standard library for gccgo.
func (gd *gccgoDirs) isStandard(path string) boolGenerated with Arrow