sync.Map was introduced in Go 1.9, this change updates the syncmap package to use a type alias to sync.Map for 1.9 and later. It also updates the comments to reflect this change. Fixes golang/go#33867 Change-Id: Ia58ad2bc409f8fcb8a7539ef165148315da5cfb1 Reviewed-on: https://go-review.googlesource.com/c/sync/+/192737 Reviewed-by: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
8 lines
379 B
Go
8 lines
379 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package syncmap provides a concurrent map implementation.
|
|
// This was the prototype for sync.Map which was added to the standard library's
|
|
// sync package in Go 1.9. https://golang.org/pkg/sync/#Map.
|
|
package syncmap
|