Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for plusBuild (0.37 sec)

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

    			if !constraint.IsPlusBuild(text) {
    				continue
    			}
    			plusBuild = append(plusBuild, text)
    		}
    	}
    
    	return string(goBuildBytes), plusBuild, sawBinaryOnly, nil
    }
    
    func parseFileHeader(content []byte) (trimmed, goBuild []byte, sawBinaryOnly bool, err error) {
    	end := 0
    	p := content
    	ended := false       // found non-blank, non-// line, so stopped accepting // +build lines
    	inSlashStar := false // in /* */ comment
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  2. src/go/printer/printer.go

    	// shortcut common case of //-style comments
    	if text[1] == '/' {
    		if constraint.IsGoBuild(text) {
    			p.goBuild = append(p.goBuild, len(p.output))
    		} else if constraint.IsPlusBuild(text) {
    			p.plusBuild = append(p.plusBuild, len(p.output))
    		}
    		p.writeString(pos, trimRight(text), true)
    		return
    	}
    
    	// for /*-style comments, print line by line and let the
    	// write function take care of the proper indentation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/imports/build.go

    	"bytes"
    	"cmd/go/internal/cfg"
    	"errors"
    	"fmt"
    	"go/build/constraint"
    	"strings"
    	"unicode"
    )
    
    var (
    	bSlashSlash = []byte("//")
    	bStarSlash  = []byte("*/")
    	bSlashStar  = []byte("/*")
    	bPlusBuild  = []byte("+build")
    
    	goBuildComment = []byte("//go:build")
    
    	errMultipleGoBuild = errors.New("multiple //go:build comments")
    )
    
    func isGoBuildComment(line []byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 18:50:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
Back to top