Add action container structs with descriptor methods.
This commit is contained in:
1 parent
0536e2c588
commit
91c176e495
4 files changed
+57
-10
No files matched your search
@@ -7,3 +7,11 @@ type TypeDesc struct {
|
||||
}
|
||||
|
||||
type TypeMap map[string]TypeDesc
|
||||
|
||||
func (tm TypeMap) Clone() TypeMap {
|
||||
r := make(TypeMap, len(tm))
|
||||
for k, v := range tm {
|
||||
r[k] = v
|
||||
}
|
||||
return r
|
||||
}
|
||||
Reference in new issue
Block a user