package main import ( "fmt" "sync" "time" ) type SyncMap struct { mymap map[string]string //读写锁包含一对相关的锁,读锁用于只读操作,写锁用于写操作。
確定! 回上一頁