pty.Attrs.Save() -> Hm, how would that translate into Go? The ProcTypeAttrs struct doesn't know which ProcType it's part of unless I add a backreference to it into the ProcTypeAttrs struct, which I would find a bit more ugly than what I currently have.

As for p.SetAttribute("memory-limit", 1000): I would really, really like to advise against going Pythonesque and schemaless, throwing out compile-time checks. SetFoo(1) might suck, but Set("foo", 1) is really, really bad, IMO.