change golang.org/x/net to be the same revision as used in kubernetes

This commit is contained in:
Jingfang Liu
2018-10-16 09:31:42 -07:00
parent 9d804ba3a8
commit e0958159f3
125 changed files with 16528 additions and 24780 deletions

View File

@@ -49,18 +49,18 @@ call to Next. For example, to extract an HTML page's anchor text:
for {
tt := z.Next()
switch tt {
case html.ErrorToken:
case ErrorToken:
return z.Err()
case html.TextToken:
case TextToken:
if depth > 0 {
// emitBytes should copy the []byte it receives,
// if it doesn't process it immediately.
emitBytes(z.Text())
}
case html.StartTagToken, html.EndTagToken:
case StartTagToken, EndTagToken:
tn, _ := z.TagName()
if len(tn) == 1 && tn[0] == 'a' {
if tt == html.StartTagToken {
if tt == StartTagToken {
depth++
} else {
depth--