func (rs *ResourceSet) WalkType(typeID Identifier, f func(resID Identifier, langID uint16, data []byte) bool) {
	te := rs.Types[typeID]
	if te == nil {
		return
	}
	te.Order()
	for _, rk := range te.OrderedKeys {
		re := te.Resources[rk]
		for _, dk := range re.OrderedKeys {
			if !f(rk, uint16(dk), re.Data[dk].Data) {
				return
			}
		}
	}
}
// WalkType walks through the resources or a certain type, in same order as they will be written.
//
// It takes a callback function that takes same parameters as Set and returns a bool that should be true to continue, false to stop.
//
// If you modify the set during a call to Walk, behaviour is undefined.
WalkType walks through the resources or a certain type, in same order as they will be written.

It takes a callback function that takes same parameters as Set and returns a bool that should be true to continue, false to stop.

If you modify the set during a call to Walk, behaviour is undefined.
// WalkType walks through the resources or a certain type in same order as they will be written . // // It takes a callback function that takes same parameters as Set and returns a bool that should be true to continue false to stop . // // If you modify the set during a call to Walk behaviour is undefined .
func (rs *ResourceSet) WalkType(typeID Identifier, f func(resID Identifier, langID uint16, data []byte) bool) {
	te := rs.Types[typeID]
	if te == nil {
		return
	}
	te.Order()
	for _, rk := range te.OrderedKeys {
		re := te.Resources[rk]
		for _, dk := range re.OrderedKeys {
			if !f(rk, uint16(dk), re.Data[dk].Data) {
				return
			}
		}
	}
}
func ( rs * ResourceSet ) WalkType ( typeID Identifier , f func ( resID Identifier , langID uint16 , data [ ] byte ) bool ) { te := rs . Types [ typeID ] if te == nil { return } te . Order ( ) for _ , rk := range te . OrderedKeys { re := te . Resources [ rk ] for _ , dk := range re . OrderedKeys { if ! f ( rk , uint16 ( dk ) , re . Data [ dk ] . Data ) { return } } } }
WalkType walks through the resources or a certain type, in same order as they will be written.
WalkType walks through the resources or a certain type in same order as they will be written .