title: How found offset index a string in rune using go
body: <p>How found offset index a string in []rune using go?</p>
  
  <p>I can do this work with string type.</p>
  
  <p><code>if i := strings.Index(input[offset:], "}}"); i &gt; 0 {print(i);}</code></p>
  
  <p>but i need for runes.</p>
  
  <p>i have a rune and want get offset index.</p>
  
  <p>how can do this work with runes type in go?</p>
  
  <p>example for more undrestand want need:</p>
  
  <pre><code>int offset=0//mean start from 0 (this is important for me)
  string text="123456783}}56"
  if i := strings.Index(text[offset:], "}}"); i &gt; 0 {print(i);}
  </code></pre>
  
  <p>output of this example is : <code>9</code></p>
  
  <p>but i want do this with []rune type(text variable)</p>
  
  <p>may?</p>
  
  <p>see my current code : <a href="https://play.golang.org/p/seImKzVpdh" rel="nofollow noreferrer">https://play.golang.org/p/seImKzVpdh</a></p>
  
  <p>tank you.</p>