code: func indexByte(s string, c byte) int {
  	return js.InternalObject(s).Call("indexOf", js.Global.Get("String").Call("fromCharCode", c)).Int()
  }
docs: // indexByte is copied from strings package to avoid importing it (since the real time package doesn't).