Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseWords (0.18 sec)

  1. src/go/build/build.go

    		}
    	}
    	return false
    }
    
    func findImportComment(data []byte) (s string, line int) {
    	// expect keyword package
    	word, data := parseWord(data)
    	if string(word) != "package" {
    		return "", 0
    	}
    
    	// expect package name
    	_, data = parseWord(data)
    
    	// now ready for import comment, a // or /* */ comment
    	// beginning and ending on the current line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
Back to top