Lines Matching refs:Package
11 package main
32 // A Package collects information about the package we're going to write.
33 type Package struct {
34 PackageName string // name of package
54 Package string // Package name
96 Go string // name used in Go referring to package C
191 var dynpackage = flag.String("dynpackage", "main", "set Go package for -dynimport output")
201 var importPath = flag.String("importpath", "", "import path of package being built (for comments in generated files)")
326 p.PackagePath = f.Package
343 // newPackage returns a new Package that will invoke
345 func newPackage(args []string) *Package {
367 p := &Package{
378 func (p *Package) Record(f *File) {
380 p.PackageName = f.Package
381 } else if p.PackageName != f.Package {
382 error_(token.NoPos, "inconsistent package names: %s, %s", p.PackageName, f.Package)