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
This commit is contained in:
Rob Pike 2010-08-06 06:14:41 +10:00
parent 75f6a0c759
commit c78be462a0
14 changed files with 44 additions and 26 deletions

View file

@ -9,14 +9,15 @@ import (
"http"
"log"
"net"
"once"
"os"
"strings"
"sync"
"testing"
)
var serverAddr string
var httpServerAddr string
var once sync.Once
const second = 1e9