title: Split a string at the last occurrence of the separator in golang
body: <p>I am trying to split a string by the last occurrence of a separator (/) in golang</p>
  
  <p>Example, I have a string "a/b/c/d", after performing the split, I would like an array of string as below </p>
  
  <pre><code>[
  "a/b/c",
  "a/b"
  "a"
  ]
  </code></pre>
  
  <p>I tried exploring strings package but couldn't find any function that does this</p>
  
  <pre><code>func main() {
      fmt.Printf("%q\n", strings.Split("a/b/c/d/e", "/"))
  }
  </code></pre>
  
  <p><strong>May I know a way to handle this?</strong></p>