Attacking the fianchetto structure

Sort:
vfdagafdgdfagfdagafdgdaf

One of the ways to attack the classical fianchetto structure is to advance to h pawn to the h5. Then we can take hxg6 hoping that black will take with the h pawn. What should I do, though, if black takes with the f pawn? Doesn't it open a file for his rook dangerously?

(In general, I'd be very grateful for the reference to any material on the typical - and simple - attacking plans against such a structure)

vfdagafdgdfagfdagafdgdaf

Thank you very much for all your responses - they are indeed very helpful (and you're obviously right about the flexibility, it's just easier too be flexible if one knows the most simple patterns).