func (rs *ResourceSet) writeData(w io.Writer, s *state) error {
	for _, tid := range s.orderedKeys {
		te := rs.Types[tid]
		for _, rid := range te.OrderedKeys {
			re := te.Resources[rid]
			for _, lcid := range re.OrderedKeys {
				if err := re.Data[lcid].writeData(w); err != nil {
					return err
				}
			}
		}
	}
	return nil
}
// writeData is where we write the actual resource data (6th part, 5th being names)
writeData is where we write the actual resource data (6th part, 5th being names)
// writeData is where we write the actual resource data ( 6th part 5th being names )
func (rs *ResourceSet) writeData(w io.Writer, s *state) error {
	for _, tid := range s.orderedKeys {
		te := rs.Types[tid]
		for _, rid := range te.OrderedKeys {
			re := te.Resources[rid]
			for _, lcid := range re.OrderedKeys {
				if err := re.Data[lcid].writeData(w); err != nil {
					return err
				}
			}
		}
	}
	return nil
}
func ( rs * ResourceSet ) writeData ( w io . Writer , s * state ) error { for _ , tid := range s . orderedKeys { te := rs . Types [ tid ] for _ , rid := range te . OrderedKeys { re := te . Resources [ rid ] for _ , lcid := range re . OrderedKeys { if err := re . Data [ lcid ] . writeData ( w ) ; err != nil { return err } } } } return nil }
writeData is where we write the actual resource data (6th part, 5th being names)
writeData is where we write the actual resource data ( 6th part 5th being names )