title: Load resource from local directory with no class
body: <p>I frequently use code like this:</p>
  
  <pre><code>val sql = getResource(this.javaClass, "foo.sql")
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>val sql = getResource(::MyClass.javaClass, "foo.sql")
  </code></pre>
  
  <p>But with Kotlin, I find myself using <em>top-level</em> functions quite often where there is no object or class.</p>
  
  <p>How would I do such a thing with a top-level function?</p>