You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I closed my other open issue #581, in favour of this more concrete one.
Looking at the hclwrite functions Insert and InsertNode, what do they expect as input for the pos *node argument?
An example would be great! I'm completely new to GO and I've been trying lots of stuff to the best of my abilities, but I struggle to being able to use the functions since I have no idea how to. However, being able to insert nodes at given positions is something that I'd really need to be able to do, so I'm really hoping for this functionality. 🙂
For the sake of it, an excerpt from the relevant part of my closed issue/question: But what I need to do, is to insert a block at a given position inside of a body (before/after block X), so kind of a InsertBlock() function if that makes sense.
I stumbled upon the Insert and InsertNode functions, and wonder if I can make use of them in some way to achieve what I need? If so, an example would be splendid! If not, what would be a suitable solution to achieve my needs?
How could I go on using the Insert and InsertNode functions from my code, like what would be expected for the first pos *node argument? For the c nodeContent it works fine for me passing a Block() to it (I guess, since it doesn't complain), but what should I pass to the pos *node argument? An example would be awesome!
The text was updated successfully, but these errors were encountered:
I closed my other open issue #581, in favour of this more concrete one.
Looking at the hclwrite functions Insert and InsertNode, what do they expect as input for the
pos *node
argument?An example would be great! I'm completely new to GO and I've been trying lots of stuff to the best of my abilities, but I struggle to being able to use the functions since I have no idea how to. However, being able to insert nodes at given positions is something that I'd really need to be able to do, so I'm really hoping for this functionality. 🙂
For the sake of it, an excerpt from the relevant part of my closed issue/question:
But what I need to do, is to insert a block at a given position inside of a body (before/after block X), so kind of a InsertBlock() function if that makes sense.
I stumbled upon the Insert and InsertNode functions, and wonder if I can make use of them in some way to achieve what I need? If so, an example would be splendid! If not, what would be a suitable solution to achieve my needs?
How could I go on using the Insert and InsertNode functions from my code, like what would be expected for the first pos *node argument? For the c nodeContent it works fine for me passing a Block() to it (I guess, since it doesn't complain), but what should I pass to the pos *node argument? An example would be awesome!
The text was updated successfully, but these errors were encountered: