Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for goBuildConstraint (0.25 sec)

  1. src/cmd/go/internal/modindex/scan.go

    			continue
    		} else if info == nil {
    			p.sourceFiles = append(p.sourceFiles, &rawFile{name: name, ignoreFile: true})
    			continue
    		}
    		rf := &rawFile{
    			name:                 name,
    			goBuildConstraint:    info.goBuildConstraint,
    			plusBuildConstraints: info.plusBuildConstraints,
    			binaryOnly:           info.binaryOnly,
    			directives:           info.directives,
    		}
    		if info.parsed != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.go

    			}
    		}
    
    		var shouldBuild = true
    		if !ctxt.goodOSArchFile(name, allTags) && !ctxt.UseAllFiles {
    			shouldBuild = false
    		} else if goBuildConstraint := tf.goBuildConstraint(); goBuildConstraint != "" {
    			x, err := constraint.Parse(goBuildConstraint)
    			if err != nil {
    				return p, fmt.Errorf("%s: parsing //go:build line: %v", name, err)
    			}
    			shouldBuild = ctxt.eval(x, allTags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modindex/index_format.txt

    		binaryOnly uint32 bool
    		cgoDirectives string offset // the #cgo directive lines in the comment on import "C"
    		goBuildConstraint  - string offset
    		len(plusBuildConstraints) - uint32
    		plusBuildConstraints - [n]uint32 (string offsets)
    		len(imports) uint32
    		for each rawImport:
    			path - string offset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 13 00:22:50 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/write.go

    	e.String(f.error)
    	e.String(f.parseError)
    	e.String(f.synopsis)
    	e.String(f.name)
    	e.String(f.pkgName)
    	e.Bool(f.ignoreFile)
    	e.Bool(f.binaryOnly)
    	e.String(f.cgoDirectives)
    	e.String(f.goBuildConstraint)
    
    	e.Int(len(f.plusBuildConstraints))
    	for _, s := range f.plusBuildConstraints {
    		e.String(s)
    	}
    
    	e.Int(len(f.imports))
    	for _, m := range f.imports {
    		e.String(m.path)
    		e.Position(m.position)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/build.go

    	imports    []fileImport
    	embeds     []fileEmbed
    	directives []build.Directive
    
    	// Additional fields added to go/build's fileinfo for the purposes of the modindex package.
    	binaryOnly           bool
    	goBuildConstraint    string
    	plusBuildConstraints []string
    }
    
    type fileImport struct {
    	path string
    	pos  token.Pos
    	doc  *ast.CommentGroup
    }
    
    type fileEmbed struct {
    	pattern string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
Back to top