title: Can I make an optional return value in golang?
body: <p>There are expressions such as:</p>
  
  <ul>
  <li>getting from a map (value, pres)</li>
  <li>asserting a type (typed value, ok)</li>
  </ul>
  
  <p>Where there are multiple values returned, but they can be assigned to a single value context, with unsuccessful conditions causing a panic instead.</p>
  
  <p>Can I make my own function work like that, allowing it to be used in a single value context and panicking on errors?</p>