Add action container structs with descriptor methods.

This commit is contained in:
John Beisley
2022-06-08 17:51:47 +01:00
parent 0536e2c588
commit 91c176e495
4 changed files with 57 additions and 10 deletions

View File

@ -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
}