v1

package
v0.0.0-...-ce13bd1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFromMap

func ReadFromMap(k string) string

func WriteToMap

func WriteToMap(k, v string)

如果注释掉 WriteToMap 和 ReadFromMap 中 locker 保护的代码,执行测试,加上 `-race` 一定会失败:`go test -v -race` ==================

TestReadFromMap: testing.go:906: race detected during execution of test
TestWriteToMap: testing.go:906: race detected during execution of test

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL