code: func WidthBucket(db XODB, v0 pgtypes.Anyelement, v1 pgtypes.Anyarray, v2 float64, v3 float64, v4 float64, v5 int, v6 float64, v7 float64, v8 float64, v9 int) (int, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT pg_catalog.width_bucket($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)`
  
  	// run query
  	var ret int
  	XOLog(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9)
  	err = db.QueryRow(sqlstr, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9).Scan(&ret)
  	if err != nil {
  		return 0, err
  	}
  
  	return ret, nil
  }
docs: // WidthBucket calls the stored procedure 'pg_catalog.width_bucket(anyelement, anyarray, double precision, double precision, double precision, integer, numeric, numeric, numeric, integer) integer' on db.