title: golang public method to private struct - is this have any use case
body: <p>I am new to go. I noticed in some libraries there are public methods to a private struct. See for example <a href="https://github.com/btcsuite/btcd/blob/master/txscript/stack.go" rel="noreferrer">https://github.com/btcsuite/btcd/blob/master/txscript/stack.go</a></p>
  
  <p>Does this have a real use case? I cannot picture how I will be able to use public methods, if I cannot access the structure they belong too.</p>
  
  <p>As the following question - is there any way to overcome the private declaration of a struct? For example, I would like to use the structure stack from the pointed file in my package.</p>