title: How to transform Go string literal code to its value?
body: <p>I'm walking around syntax tree in Go, trying to find all calls to some particular function and then get its string argument (it's a file name, and should be string literal, not any other identifier). I'm succeeded with this, and now I have <code>ast.BasicLit</code> node with <code>Kind == token.STRING</code>, but its value is Go code, not a value of the string that it should have. </p>
  
  <p>I found question that answers how to do reverse transformation - from string to go code it represents: <a href="https://stackoverflow.com/questions/17779371/golang-given-a-string-output-an-equivalent-golang-string-literal">golang: given a string, output an equivalent golang string literal</a></p>
  
  <p>But I want the opposite - something like eval function (but just for Go string literals).</p>