help with making a structure generate datapack

I'm trying to figure out how to get my own custom structures to spawn in my world, however I can't seem to find a good tutorial on it I only found one that was for a lower version so I'm not sure what I should change
Continue to help post