1 // Copyright 2019 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package syncmap provides a concurrent map implementation. 6 // This was the prototype for sync.Map which was added to the standard library's 7 // sync package in Go 1.9. https://golang.org/pkg/sync/#Map. 8 package syncmap 9 10 import "sync" // home to the standard library's sync.map implementation as of Go 1.9 11 12 // Map is a concurrent map with amortized-constant-time loads, stores, and deletes. 13 // It is safe for multiple goroutines to call a Map's methods concurrently. 14 // 15 // The zero Map is valid and empty. 16 // 17 // A Map must not be copied after first use. 18 type Map = sync.Map 19