mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
75f6a0c759
commit
c78be462a0
14 changed files with 44 additions and 26 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue