hi @christianb
glad go-hep/rootio was useful 
My main sources of inspiration (besides ROOT, of course) were:
note that the canonical go-hep/rootio repo is now at https://go-hep.org/x/hep/rootio, ie:
see here for the top-level function that decodes the streamers:
and here is the full list of streamers that I can currently decode:
and, finally, the function that, given a StreamerElement, will generate a function that decodes a ROOT TBuffer and fill the data into a user-provided pointer-to-data:
hth,
-s