code: func indexOfSecBuffer(bs []sspi.SecBuffer, buftype uint32) int {
  	for i := range bs {
  		if bs[i].BufferType == buftype {
  			return i
  		}
  	}
  	return -1
  }
docs: // indexOfSecBuffer searches buffers bs for buffer type buftype.
  // It returns -1 if not found.