Lines Matching refs:Package
11 package main
29 // A Package collects information about the package we're going to write.
30 type Package struct {
31 PackageName string // name of package
51 Package string // Package name
87 Go string // name used in Go referring to package C
177 var dynpackage = flag.String("dynpackage", "main", "set Go package for -dynimport output")
187 var importPath = flag.String("importpath", "", "import path of package being built (for comments in generated files)")
310 p.PackagePath = f.Package
327 // newPackage returns a new Package that will invoke
329 func newPackage(args []string) *Package {
351 p := &Package{
362 func (p *Package) Record(f *File) {
364 p.PackageName = f.Package
365 } else if p.PackageName != f.Package {
366 error_(token.NoPos, "inconsistent package names: %s, %s", p.PackageName, f.Package)