Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sawGoBuild (0.08 sec)

  1. src/cmd/fix/buildtag.go

    	// some lines from a comment block - does format correctly.
    	fixed := false
    	for _, g := range f.Comments {
    		sawGoBuild := false
    		for i, c := range g.List {
    			if strings.HasPrefix(c.Text, "//go:build ") {
    				sawGoBuild = true
    			}
    			if sawGoBuild && strings.HasPrefix(c.Text, "// +build ") {
    				g.List = g.List[:i]
    				fixed = true
    				break
    			}
    		}
    	}
    
    	return fixed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top