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 gccgoDirs
gccgoSearch 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) bool
IsStandardPackage reports whether path is a standard package, given goroot and compiler.
func IsStandardPackage(goroot string, compiler string, path string) bool
init 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) bool
Generated with Arrow