Variable declared and not used in conditional statement
问题 I declare some variables ( offsetI and limitI ) outside of a conditional statement. Inside the conditional statement I am trying to assign them values, then use those values for a query after the conditional statement. var ( number, size, offset, limit string offsetI, limitI uint64 ) // Get the string values for number, size, offset, and limit // ... if size != "" { // Parse the number value numberI, err := strconv.ParseUint(number, 10, 64) if err != nil {...} // Parse the size value limitI,