code: func CursorForObjectInConnection(data []interface{}, object interface{}) ConnectionCursor {
  	offset := -1
  	for i, d := range data {
  		// TODO: better object comparison
  		if reflect.DeepEqual(d, object) {
  			offset = i
  			break
  		}
  	}
  	if offset == -1 {
  		return ""
  	}
  	return OffsetToCursor(offset)
  }
docs: // Return the cursor associated with an object in an array.