go19.go 564 B

123456789101112131415161718
  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. //go:build go1.9
  5. // +build go1.9
  6. package syncmap
  7. import "sync" // home to the standard library's sync.map implementation as of Go 1.9
  8. // Map is a concurrent map with amortized-constant-time loads, stores, and deletes.
  9. // It is safe for multiple goroutines to call a Map's methods concurrently.
  10. //
  11. // The zero Map is valid and empty.
  12. //
  13. // A Map must not be copied after first use.
  14. type Map = sync.Map