title: How can I resolve a relative path to absolute path in golang?
body: <p>Is there a api like 'path.resolve' in node? Or something can do the same?</p>
  
  <p>For Example (nodejs code):
  <code>path.resolve("~/sample.sh")</code>
  Should got: <code>/home/currentuser/sample.sh</code></p>