Update rsrc.go

Made the  for-loop to a separate function