title: Remove path from filename
body: <p>I have trivial question. </p>
  
  <p>I have string which contains a filename and it's path. How can i remove whole path? I have tried those:</p>
  
  <pre><code>line = "/some/path/to/remove/file.name"
  line := strings.LastIndex(line, "/")
  fmt.Println(line)
  </code></pre>
  
  <p>It prints some strange number:</p>
  
  <pre><code>38
  </code></pre>
  
  <p>I need it without last slash</p>
  
  <p>Thanks a lot</p>