You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
starmap/starmap.go

19 lines
310 B
Go

package starmap
import "sync"
var kvMap map[string]interface{}
var kvmu sync.RWMutex
var kvMapPro map[string]StarMap
var kvmuPro sync.RWMutex
type StarStack struct {
kvPushmu sync.RWMutex
kvStack []interface{}
}
func init() {
kvMap = make(map[string]interface{})
kvMapPro = make(map[string]StarMap)
}