* Update go-redis to v8.4.0 * github.com/go-redis/redis/v8 v8.4.0 -> v8.5.0 * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * TODO * Use the Queue termination channel as the default context for pushes Signed-off-by: Andrew Thornton <art27@cantab.net> * missed one Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
		
			
				
	
	
		
			20 lines
		
	
	
		
			476 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			476 B
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
package util
 | 
						|
 | 
						|
import "strconv"
 | 
						|
 | 
						|
func Atoi(b []byte) (int, error) {
 | 
						|
	return strconv.Atoi(BytesToString(b))
 | 
						|
}
 | 
						|
 | 
						|
func ParseInt(b []byte, base int, bitSize int) (int64, error) {
 | 
						|
	return strconv.ParseInt(BytesToString(b), base, bitSize)
 | 
						|
}
 | 
						|
 | 
						|
func ParseUint(b []byte, base int, bitSize int) (uint64, error) {
 | 
						|
	return strconv.ParseUint(BytesToString(b), base, bitSize)
 | 
						|
}
 | 
						|
 | 
						|
func ParseFloat(b []byte, bitSize int) (float64, error) {
 | 
						|
	return strconv.ParseFloat(BytesToString(b), bitSize)
 | 
						|
}
 |