once: replace all uses of package once with sync.Once.
package once remains for now; will be deleted after next release.
R=golang-dev, brainman
CC=golang-dev
https://golang.org/cl/1914046
diff --git a/src/pkg/mime/type.go b/src/pkg/mime/type.go
index 9202b85..a10b780 100644
--- a/src/pkg/mime/type.go
+++ b/src/pkg/mime/type.go
@@ -7,7 +7,6 @@
import (
"bufio"
- "once"
"os"
"strings"
"sync"
@@ -69,6 +68,8 @@
}
}
+var once sync.Once
+
// TypeByExtension returns the MIME type associated with the file extension ext.
// The extension ext should begin with a leading dot, as in ".html".
// When ext has no associated type, TypeByExtension returns "".