goroot

Imports

Imports #

"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"os"
"path/filepath"
"strings"

Constants & Variables

gccgoSearch var #

gccgoSearch is used to check whether a gccgo package exists in the standard library.

var gccgoSearch gccgoDirs

Structs

gccgoDirs struct #

gccgoSearch holds the gccgo search directories.

type gccgoDirs struct {
once sync.Once
dirs []string
}

Functions

IsStandardPackage function #

IsStandardPackage reports whether path is a standard package, given goroot and compiler.

func IsStandardPackage(goroot string, compiler string, path string) bool

IsStandardPackage function #

IsStandardPackage reports whether path is a standard package, given goroot and compiler.

func IsStandardPackage(goroot string, compiler string, path string) bool

init method #

init finds the gccgo search directories. If this fails it leaves dirs == nil.

func (gd *gccgoDirs) init()

isStandard method #

isStandard reports whether path is a standard library for gccgo.

func (gd *gccgoDirs) isStandard(path string) bool

Generated with Arrow